#120822#120822

#120822 is a very dark, muted violet. Relative luminance 0.004; OKLCH L 16.7% C 0.053 H 298.4°. Best body text is #FFFFFF at 19.38:1 contrast (WCAG AA passes).

Color values

HEX#120822
RGBrgb(18, 8, 34)
HSLhsl(263, 62%, 8%)
HSVhsv(263, 76%, 13%)
CMYKcmyk(47.1%, 76.5%, 0%, 86.7%)
CIE-LABlab(3.77, 9.34, -14.49)
CIE-LCHlch(3.77, 17.24, 302.79°)
OKLaboklab(16.66% 0.0251 -0.0464)
OKLCHoklch(16.66% 0.053 298.4)
XYZxyz(0.6249, 0.4177, 1.5608)
Luminance0.0042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120822 #182208
analogous
#080B22 #120822 #1F0822
triadic
#120822 #221208 #082212
tetradic
#120822 #22080B #182208 #08221F
square
#120822 #22080B #182208 #08221F
split-complementary
#120822 #221F08 #0B2208
monochromatic
#0D0619 #0D0619 #120822 #2C1454 #461F85

Accessibility & contrast

On white

19.38
#120822 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#120822 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120822
19.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120822#FFFFFF#000000##FFFFFF
##1208221.0019.381.0819.38
#FFFFFF19.381.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#010D23
Deuteranopia (green-blind)
#020D21
Tritanopia (blue-blind)
#0E0D13
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #120822;
/* rgb */ color: rgb(18, 8, 34);
/* oklch */ color: oklch(16.7% 0.053 298.4);
Tailwind
colors: {
  custom: {
    50: '#504a5d',
    500: '#120822',
    950: '#000000',
  },
}
SCSS
$custom: #120822;
$custom-light: #504a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#120822",
  "rgb": {
    "r": 18,
    "g": 8,
    "b": 34
  },
  "hsl": {
    "h": 263.077,
    "s": 61.905,
    "l": 8.235
  },
  "oklch": {
    "l": 0.16662,
    "c": 0.05278,
    "h": 298.4
  },
  "luminance": 0.00418
}

Semantic roles & 50–950 ramp

primary
#120822
secondary
#4A6026
accent
#E543A7
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#020104
muted
#787779

Preview Lab

Preview with #120822

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#120822 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva