Colors

Version: Latest
NPMGithub
Table of Contents

Attention! This is the latest iteration of our color component, currently in its beta phase.

If you wish to access the previous version, please visit the v1 page.

However, if you're looking for a more comprehensive color palette with improved dark shades, you've come to the right place. Explore further below for an enhanced experience.

Add a collection of prebuild colors to any project with ease, using Fylgja Colors.

Installation

npm install @fylgja/colors@2.0.0-beta.6

Then include the component in to your code via;

@use "@fylgja/colors";
// Or via PostCSS and other options as native CSS
@import "@fylgja/colors"; // *

How to use

This component comes in 3 syntaxes.

  • SCSS is offered in both the SCSS and CSS variable syntax
  • CSS is offered as CSS variables
  • Javascript Style Tokens, if you want to use it in a Javascript based environment, like React or Vue.

And comes packing in both HEX and HSL syntax;

Color options

redGray
oklch(99% .03 18)
hsl(0.7288 100% 97.867%)
#fff4f4
oklch(95% .03 18)
hsl(0.3031 100% 95.265%)
#ffe7e7
oklch(90% .03 18)
hsl(0.2407 49.993% 89.4%)
#f1d7d6
oklch(88% .03 18)
hsl(0.2294 39.958% 86.821%)
#ebd0d0
oklch(82% .03 18)
hsl(0.1918 24.786% 79.17%)
#d7bdbd
oklch(78% .03 18)
hsl(0.1633 19.688% 74.143%)
#cab0b0
oklch(68% .03 18)
hsl(0.0758 12.834% 61.853%)
#aa9191
oklch(58% .03 18)
hsl(359.95 9.3629% 49.985%)
#8b7474
oklch(52% .03 18)
hsl(359.86 10.538% 43.085%)
#796262
oklch(44% .03 18)
hsl(359.68 12.681% 34.173%)
#624c4c
oklch(35% .03 18)
hsl(359.37 16.528% 24.587%)
#493435
oklch(28% .03 18)
hsl(358.96 21.815% 17.497%)
#362323
oklch(20% .03 18)
hsl(358.05 35.335% 9.8478%)
#221011
oklch(15% .03 18)
hsl(357.44 57.052% 5.4601%)
#160607
oklch(11% .03 18)
hsl(357.07 78.095% 2.7603%)
#0d0202
greenGray
oklch(99% .03 152)
hsl(135.08 100% 96.607%)
#eefff2
oklch(95% .03 152)
hsl(132.81 49.562% 91.995%)
#e0f5e5
oklch(90% .03 152)
hsl(132.86 27.095% 85.541%)
#d0e4d4
oklch(88% .03 152)
hsl(132.88 22.903% 82.985%)
#cadece
oklch(82% .03 152)
hsl(132.95 15.585% 75.403%)
#b7cabb
oklch(78% .03 152)
hsl(133 12.813% 70.425%)
#aabdae
oklch(68% .03 152)
hsl(133.16 8.7986% 58.264%)
#8b9e8f
oklch(58% .03 152)
hsl(133.38 7.6132% 46.544%)
#6e8072
oklch(52% .03 152)
hsl(133.56 8.7046% 39.746%)
#5d6e61
oklch(44% .03 152)
hsl(133.88 10.777% 30.984%)
#46584a
oklch(35% .03 152)
hsl(134.45 14.779% 21.59%)
#2f3f33
oklch(28% .03 152)
hsl(135.22 20.914% 14.67%)
#1e2d22
oklch(20% .03 152)
hsl(137.04 40.748% 7.2268%)
#0b1a0f
oklch(15% .03 152)
hsl(134.27 70.437% 3.3757%)
#030f05
oklch(11% .03 152)
hsl(133.07 100% 1.2944%)
#000701
blueGray
oklch(99% .03 258)
hsl(187.81 100% 96.982%)
#f0fdff
oklch(95% .03 258)
hsl(212.23 100% 94.387%)
#e2f0ff
oklch(90% .03 258)
hsl(215.77 56.216% 88.713%)
#d2dff2
oklch(88% .03 258)
hsl(215.77 45.518% 86.139%)
#ccd9ec
oklch(82% .03 258)
hsl(215.77 28.83% 78.505%)
#b8c5d8
oklch(78% .03 258)
hsl(215.77 23.082% 73.49%)
#acb8cb
oklch(68% .03 258)
hsl(215.76 15.243% 61.231%)
#8d99ab
oklch(58% .03 258)
hsl(215.76 11.488% 49.404%)
#707b8c
oklch(52% .03 258)
hsl(215.76 12.978% 42.536%)
#5e6a7b
oklch(44% .03 258)
hsl(215.76 15.715% 33.674%)
#485363
oklch(35% .03 258)
hsl(215.77 20.682% 24.156%)
#313b4a
oklch(28% .03 258)
hsl(215.78 27.586% 17.134%)
#202938
oklch(20% .03 258)
hsl(215.79 45.465% 9.5893%)
#0d1624
oklch(15% .03 258)
hsl(218.48 69.651% 5.4618%)
#040b18
oklch(11% .03 258)
hsl(225.18 88.569% 3.0147%)
#01040e
gray
oklch(99% 0 0)
hsl(223.81 0.0005% 98.683%)
#fcfcfc
oklch(95% 0 0)
hsl(223.81 0.0001% 93.448%)
#eee
oklch(90% 0 0)
hsl(223.81 0% 86.982%)
#dedede
oklch(88% 0 0)
hsl(223.81 0% 84.42%)
#d7d7d7
oklch(82% 0 0)
hsl(223.81 0% 76.823%)
#c4c4c4
oklch(78% 0 0)
hsl(223.81 0% 71.834%)
#b7b7b7
oklch(68% 0 0)
hsl(223.81 0% 59.646%)
#989898
oklch(58% 0 0)
hsl(223.81 0% 47.9%)
#7a7a7a
oklch(52% 0 0)
hsl(223.81 0% 41.086%)
#696969
oklch(44% 0 0)
hsl(223.81 0% 32.307%)
#525252
oklch(35% 0 0)
hsl(223.81 0% 22.901%)
#3a3a3a
oklch(28% 0 0)
hsl(223.81 0% 15.988%)
#292929
oklch(20% 0 0)
hsl(223.81 0% 8.6104%)
#161616
oklch(15% 0 0)
hsl(223.81 0% 4.3484%)
#0b0b0b
oklch(11% 0 0)
hsl(223.81 0% 1.7197%)
#040404
pink
oklch(99% .03 350)
hsl(302.15 100% 97.85%)
#fff4ff
oklch(95% .06 350)
hsl(320.24 100% 93.683%)
#ffdff4
oklch(90% .12 350)
hsl(319.81 100% 87.051%)
#ffbde9
oklch(88% .14 350)
hsl(320.19 100% 84.521%)
#ffb0e4
oklch(82% .16 350)
hsl(325.35 100% 79.392%)
#ff96d3
oklch(78% .17 350)
hsl(327.86 100% 76.162%)
#ff85c7
oklch(68% .19 350)
hsl(327.76 76.667% 64.044%)
#ea5da9
oklch(58% .21 350)
hsl(324.79 63.165% 49.271%)
#cd2e8b
oklch(52% .20 350)
hsl(323.62 72.91% 40.989%)
#b51c79
oklch(44% .18 350)
hsl(321.7 92.277% 30.025%)
#930660
oklch(35% .15 350)
hsl(321.91 100% 21.369%)
#6d0045
oklch(28% .12 350)
hsl(322.86 100% 15.498%)
#4f0031
oklch(20% .10 350)
hsl(326.51 100% 9.8873%)
#32001c
oklch(15% .07 350)
hsl(329.6 100% 5.8593%)
#1e000f
oklch(11% .05 350)
hsl(335.9 100% 3.0397%)
#100006
purple
oklch(99% .03 330)
hsl(300 100% 98.03%)
#fff5ff
oklch(95% .06 330)
hsl(300 100% 94.051%)
#ffe1ff
oklch(90% .12 330)
hsl(300 100% 87.845%)
#ffc1ff
oklch(88% .14 330)
hsl(300 100% 85.478%)
#ffb5ff
oklch(82% .16 330)
hsl(305.11 96.756% 80.215%)
#fd9cf5
oklch(78% .17 330)
hsl(304.79 80.743% 75.014%)
#f38ceb
oklch(68% .19 330)
hsl(303.98 58.286% 61.884%)
#d665cf
oklch(58% .21 330)
hsl(303 51.739% 48.069%)
#ba3bb4
oklch(52% .20 330)
hsl(302.75 58.303% 40.479%)
#a32b9e
oklch(44% .18 330)
hsl(302.47 68.329% 30.871%)
#851980
oklch(35% .15 330)
hsl(302.23 82.413% 20.974%)
#62095e
oklch(28% .12 330)
hsl(302.27 87.194% 14.748%)
#460544
oklch(20% .10 330)
hsl(302.04 100% 8.6445%)
#2c002b
oklch(15% .07 330)
hsl(302.56 100% 5.0337%)
#1a0019
oklch(11% .05 330)
hsl(303.56 99.785% 2.4926%)
#0d000c
violet
oklch(99% .03 310)
hsl(300 100% 98.361%)
#fff7ff
oklch(95% .06 310)
hsl(290.97 100% 94.712%)
#fbe4ff
oklch(90% .12 310)
hsl(290.74 100% 89.18%)
#f6c8ff
oklch(88% .14 310)
hsl(289.83 100% 87.046%)
#f4bdff
oklch(82% .16 310)
hsl(281.87 100% 82.334%)
#e4a5ff
oklch(78% .17 310)
hsl(278.1 100% 79.338%)
#d996ff
oklch(68% .19 310)
hsl(276.03 78.818% 68.727%)
#bc70ee
oklch(58% .21 310)
hsl(277.32 62.062% 56.032%)
#a049d4
oklch(52% .20 310)
hsl(277.74 53.345% 48.144%)
#8c39bc
oklch(44% .18 310)
hsl(278.24 59.7% 37.88%)
#70279a
oklch(35% .15 310)
hsl(278.7 67.426% 26.903%)
#521673
oklch(28% .12 310)
hsl(278.7 72.173% 19.016%)
#3b0d53
oklch(20% .10 310)
hsl(279.03 98.579% 10.76%)
#240036
oklch(15% .07 310)
hsl(276.28 93.422% 6.5557%)
#140120
oklch(11% .05 310)
hsl(270.42 93.598% 3.4588%)
#090111
indigo
oklch(99% .03 290)
hsl(260.1 100% 98.803%)
#fbf9ff
oklch(95% .06 290)
hsl(252.41 100% 95.583%)
#ede8ff
oklch(90% .12 290)
hsl(255.46 100% 90.895%)
#ddd1ff
oklch(88% .14 290)
hsl(256.26 100% 89.037%)
#d6c7ff
oklch(82% .16 290)
hsl(254.57 100% 84.577%)
#c3b0ff
oklch(78% .17 290)
hsl(253.83 100% 81.701%)
#b7a2ff
oklch(68% .19 290)
hsl(252.92 100% 74.647%)
#9a7eff
oklch(58% .21 290)
hsl(255.3 78.377% 63.384%)
#7e58eb
oklch(52% .20 290)
hsl(256.12 59.836% 55.055%)
#6d48d1
oklch(44% .18 290)
hsl(257.05 53.512% 43.976%)
#5634ac
oklch(35% .15 290)
hsl(257.83 58.922% 31.818%)
#3e2181
oklch(28% .12 290)
hsl(257.83 62.391% 22.734%)
#2b165e
oklch(20% .10 290)
hsl(260.46 85.651% 13.239%)
#19053f
oklch(15% .07 290)
hsl(256.6 85.275% 7.9713%)
#0d0326
oklch(11% .05 290)
hsl(251.44 88.029% 4.2951%)
#050115
blue
oklch(99% .03 260)
hsl(189.2 100% 97.109%)
#f0fdff
oklch(95% .06 260)
hsl(202.72 100% 92.247%)
#d7f0ff
oklch(90% .12 260)
hsl(203.84 100% 84.368%)
#afdfff
oklch(88% .14 260)
hsl(204.65 100% 81.482%)
#a1d8ff
oklch(82% .16 260)
hsl(209.26 100% 76.109%)
#85c4ff
oklch(78% .17 260)
hsl(211.62 100% 72.813%)
#74b6ff
oklch(68% .19 260)
hsl(215.93 100% 64.954%)
#4c94ff
oklch(58% .21 260)
hsl(216.87 90.127% 53.96%)
#2071f3
oklch(52% .20 260)
hsl(216.23 86.53% 45.615%)
#105fd9
oklch(44% .18 260)
hsl(215.49 100% 35.114%)
#0049b3
oklch(35% .15 260)
hsl(217.52 100% 26.357%)
#003286
oklch(28% .12 260)
hsl(218.83 100% 19.272%)
#002362
oklch(20% .10 260)
hsl(225.92 100% 12.92%)
#000f42
oklch(15% .07 260)
hsl(228.48 100% 7.7927%)
#000828
oklch(11% .05 260)
hsl(231.51 100% 4.3073%)
#000316
cyan
oklch(99% .03 220)
hsl(180 100% 95.228%)
#e7ffff
oklch(95% .06 220)
hsl(186.17 100% 88.125%)
#c2f9ff
oklch(90% .12 220)
hsl(186.29 100% 73.195%)
#76f1ff
oklch(88% .14 220)
hsl(186.35 100% 65.587%)
#4fecff
oklch(82% .16 220)
hsl(188.58 100% 50%)
#00dbff
oklch(78% .17 220)
hsl(191.48 100% 50%)
#00ceff
oklch(68% .19 220)
hsl(194.72 100% 45.467%)
#00afe8
oklch(58% .21 220)
hsl(198.18 100% 40.444%)
#0090ce
oklch(52% .20 220)
hsl(199.2 100% 35.804%)
#007cb7
oklch(44% .18 220)
hsl(200.45 100% 29.306%)
#006395
oklch(35% .15 220)
hsl(201.81 100% 21.789%)
#00476f
oklch(28% .12 220)
hsl(202.74 100% 15.816%)
#003251
oklch(20% .10 220)
hsl(207.58 100% 10.277%)
#001c34
oklch(15% .07 220)
hsl(210.02 100% 6.07%)
#000f1f
oklch(11% .05 220)
hsl(216.11 100% 3.1683%)
#000610
teal
oklch(99% .03 170)
hsl(162.67 100% 95.686%)
#e9fff9
oklch(95% .06 170)
hsl(157.39 90.546% 88.554%)
#c7fce8
oklch(90% .12 170)
hsl(160.36 89.201% 74.426%)
#84f8d2
oklch(88% .14 170)
hsl(161.89 87.959% 67.704%)
#64f5c9
oklch(82% .16 170)
hsl(166 83.168% 48.94%)
#15e5b4
oklch(78% .17 170)
hsl(166.06 100% 42.546%)
#00d9a7
oklch(68% .19 170)
hsl(162.91 100% 36.718%)
#00bb86
oklch(58% .21 170)
hsl(158.97 100% 30.936%)
#009e66
oklch(52% .20 170)
hsl(157.75 100% 26.939%)
#008956
oklch(44% .18 170)
hsl(156.2 100% 21.603%)
#006e42
oklch(35% .15 170)
hsl(154.34 100% 15.696%)
#00502e
oklch(28% .12 170)
hsl(152.81 100% 11.206%)
#00391f
oklch(20% .10 170)
hsl(145.58 100% 6.6786%)
#00220f
oklch(15% .07 170)
hsl(140.99 100% 3.7461%)
#001307
oklch(11% .05 170)
hsl(139.08 100% 1.6524%)
#000803
green
oklch(99% .03 140)
hsl(107.61 100% 96.686%)
#f2ffee
oklch(95% .06 140)
hsl(109.12 76.329% 90.222%)
#daf9d3
oklch(90% .12 140)
hsl(109.2 74.537% 79.898%)
#b3f2a6
oklch(88% .14 140)
hsl(109.2 72.703% 75.836%)
#a5ee95
oklch(82% .16 140)
hsl(109.11 60.113% 66.508%)
#89dd76
oklch(78% .17 140)
hsl(108.98 54.383% 60.466%)
#77d163
oklch(68% .19 140)
hsl(107.79 56.16% 44.904%)
#4cb332
oklch(58% .21 140)
hsl(114.02 100% 29.213%)
#0f9500
oklch(52% .20 140)
hsl(120 100% 25.35%)
#008100
oklch(44% .18 140)
hsl(120 100% 20.239%)
#006700
oklch(35% .15 140)
hsl(120 100% 14.627%)
#004b00
oklch(28% .12 140)
hsl(120 100% 10.397%)
#003500
oklch(20% .10 140)
hsl(120 100% 6.0679%)
#001f00
oklch(15% .07 140)
hsl(120 100% 3.3457%)
#010
oklch(11% .05 140)
hsl(120 100% 1.4227%)
#000700
lime
oklch(99% .03 125)
hsl(82.94 100% 95.882%)
#f7ffea
oklch(95% .06 125)
hsl(83.595 71.341% 88.009%)
#e5f6cb
oklch(90% .12 125)
hsl(81.784 70.55% 75.095%)
#ccec93
oklch(88% .14 125)
hsl(80.963 69.5% 69.94%)
#c2e87d
oklch(82% .16 125)
hsl(79.536 60.32% 59.047%)
#add658
oklch(78% .17 125)
hsl(78.31 56.475% 51.59%)
#9fc93e
oklch(68% .19 125)
hsl(75.704 100% 33.418%)
#7eaa00
oklch(58% .21 125)
hsl(79.561 100% 27.464%)
#5e8c00
oklch(52% .20 125)
hsl(80.785 100% 23.729%)
#4f7900
oklch(44% .18 125)
hsl(82.375 100% 18.838%)
#3c6000
oklch(35% .15 125)
hsl(84.34 100% 13.524%)
#294500
oklch(28% .12 125)
hsl(86.044 100% 9.5631%)
#1c3100
oklch(20% .10 125)
hsl(94.235 100% 5.4287%)
#0c1c00
oklch(15% .07 125)
hsl(98.414 100% 2.9293%)
#050f00
oklch(11% .05 125)
hsl(98.857 100% 1.2052%)
#020600
yellow
oklch(99% .03 96)
hsl(53.497 100% 95.034%)
#fffce6
oklch(95% .06 96)
hsl(48.301 85.37% 87.019%)
#faefc2
oklch(90% .12 96)
hsl(48.232 86.422% 72.731%)
#f6de7d
oklch(88% .14 96)
hsl(48.479 85.843% 66.608%)
#f3d761
oklch(82% .16 96)
hsl(49.586 77.117% 52.231%)
#e3c327
oklch(78% .17 96)
hsl(50.304 100% 42.359%)
#d8b500
oklch(68% .19 96)
hsl(47.341 100% 36.817%)
#bc9400
oklch(58% .21 96)
hsl(43.296 100% 31.407%)
#a07400
oklch(52% .20 96)
hsl(42.035 100% 27.457%)
#8c6200
oklch(44% .18 96)
hsl(40.461 100% 22.123%)
#714c00
oklch(35% .15 96)
hsl(38.687 100% 16.149%)
#523500
oklch(28% .12 96)
hsl(37.452 100% 11.548%)
#3b2500
oklch(20% .10 96)
hsl(30.439 100% 7.025%)
#241200
oklch(15% .07 96)
hsl(26.463 100% 3.9473%)
#140900
oklch(11% .05 96)
hsl(23.613 100% 1.7694%)
#090400
orange
oklch(99% .03 70)
hsl(44.914 100% 95.208%)
#fff9e7
oklch(95% .06 70)
hsl(37.088 100% 88.348%)
#ffe8c4
oklch(90% .12 70)
hsl(37.296 100% 75.614%)
#ffd083
oklch(88% .14 70)
hsl(37.412 100% 70.457%)
#ffc668
oklch(82% .16 70)
hsl(35.98 100% 60.984%)
#ffaf38
oklch(78% .17 70)
hsl(38.394 100% 49.207%)
#fba100
oklch(68% .19 70)
hsl(33.417 100% 43.847%)
#e07d00
oklch(58% .21 70)
hsl(26.827 100% 38.437%)
#c45800
oklch(52% .20 70)
hsl(24.755 100% 33.874%)
#ad4700
oklch(44% .18 70)
hsl(22.154 100% 27.576%)
#8d3400
oklch(35% .15 70)
hsl(19.258 100% 20.389%)
#682100
oklch(28% .12 70)
hsl(17.41 100% 14.757%)
#4b1600
oklch(20% .10 70)
hsl(6.7957 100% 9.3842%)
#300500
oklch(15% .07 70)
hsl(6.6397 100% 5.5129%)
#1c0300
oklch(11% .05 70)
hsl(5.6292 100% 2.806%)
#0e0100
red
oklch(99% .03 25)
hsl(13.173 100% 97.384%)
#fff5f2
oklch(95% .06 25)
hsl(8.8377 100% 92.82%)
#ffe0da
oklch(90% .12 25)
hsl(7.1314 100% 85.638%)
#ffbeb6
oklch(88% .14 25)
hsl(6.3437 100% 83.023%)
#ffb2a8
oklch(82% .16 25)
hsl(4.603 100% 77.957%)
#ff978f
oklch(78% .17 25)
hsl(3.6533 100% 74.842%)
#ff877f
oklch(68% .19 25)
hsl(1.4993 91.206% 65.983%)
#f75d59
oklch(58% .21 25)
hsl(357.35 71.038% 51.397%)
#db2b33
oklch(52% .20 25)
hsl(355.03 78.979% 42.44%)
#c21725
oklch(44% .18 25)
hsl(351.78 100% 31.042%)
#9e0016
oklch(35% .15 25)
hsl(355.49 100% 23.072%)
#760009
oklch(28% .12 25)
hsl(356.83 100% 16.787%)
#560005
oklch(20% .10 25)
hsl(0 100% 10.857%)
#370000
oklch(15% .07 25)
hsl(359.84 100% 6.4957%)
#210000
oklch(11% .05 25)
hsl(359.63 100% 3.4618%)
#120000
Toggle color values:

SCSS version

@use "@fylgja/colors" as *;

.style {
    color: $blue-5;
}

// CSS Syntax
@use "@fylgja/colors/props";

.style {
    color: var(--blue-5);
}

CSS version

@import "@fylgja/colors";

.style {
    color: var(--blue-5);
}

Javascript

import props from "@fylgja/colors"

const style = {
    color: props.blue[5]
}

Using HSL syntax

Instead of importing the default version you can import the hsl version using;

@use "@fylgja/colors/hsl";
// Or via PostCSS and other options as native CSS
@import "@fylgja/colors/hsl"; // *

.silver-card {
    background-color: hsl(var(--blue-gray-4-hsl) / 10%);
}

Using okLCH syntax

This syntax might still change in the actual v2 release

Instead of importing the default version you can import the oklch version using;

@use "@fylgja/colors/oklch";
@use "@fylgja/colors/oklch-hues";
// Or via PostCSS and other options as native CSS
@import "@fylgja/colors/oklch"; // *
@import "@fylgja/colors/oklch-hues"; // *

.silver-card {
    --color-hue: var(--blue); // or your own color angle/hue
    background-color: oklch(var(--color-4));
}

Using a single colors

Instead of importing all the color options you can import 1 of the many colors, using the following import path;

@import "@fylgja/colors/hex/blue"; /* As HEX */
@import "@fylgja/colors/hsl/blue"; /* As HSL */

This only available for the CSS syntax

Noticed a typo or is something unclear? Help us improve this page on GitHub.