#120818#120818

#120818 is a very dark, muted violet. Relative luminance 0.004; OKLCH L 15.8% C 0.036 H 311.8°. Best body text is #FFFFFF at 19.56:1 contrast (WCAG AA passes).

Color values

HEX#120818
RGBrgb(18, 8, 24)
HSLhsl(278, 50%, 6%)
HSVhsv(278, 67%, 9%)
CMYKcmyk(25%, 66.7%, 0%, 90.6%)
CIE-LABlab(3.33, 6.19, -7.26)
CIE-LCHlch(3.33, 9.54, 310.44°)
OKLaboklab(15.84% 0.0241 -0.0269)
OKLCHoklch(15.84% 0.036 311.8)
XYZxyz(0.5011, 0.3682, 0.9087)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120818 #0E1808
analogous
#0A0818 #120818 #180816
triadic
#120818 #181208 #081812
tetradic
#120818 #180A08 #0E1808 #081618
square
#120818 #180A08 #0E1808 #081618
split-complementary
#120818 #161808 #08180A
monochromatic
#110817 #110817 #120818 #341746 #572774

Accessibility & contrast

On white

19.56
#120818 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#120818 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120818
19.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120818#FFFFFF#000000##FFFFFF
##1208181.0019.561.0719.56
#FFFFFF19.561.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#050B19
Deuteranopia (green-blind)
#070C18
Tritanopia (blue-blind)
#110A0E
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #120818;
/* rgb */ color: rgb(18, 8, 24);
/* oklch */ color: oklch(15.8% 0.036 311.8);
Tailwind
colors: {
  custom: {
    50: '#4f4a54',
    500: '#120818',
    950: '#000000',
  },
}
SCSS
$custom: #120818;
$custom-light: #4f4a54;
$custom-dark: #000000;
JSON
{
  "hex": "#120818",
  "rgb": {
    "r": 18,
    "g": 8,
    "b": 24
  },
  "hsl": {
    "h": 277.5,
    "s": 50,
    "l": 6.275
  },
  "oklch": {
    "l": 0.15844,
    "c": 0.03612,
    "h": 311.8
  },
  "luminance": 0.00368
}

Semantic roles & 50–950 ramp

primary
#120818
secondary
#385428
accent
#DA4E82
background
#F4F4F4
surface
#E7E7E7
border
#C3C3C3
text
#020102
muted
#787778

Preview Lab

Preview with #120818

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

Preview Lab → · Contrast checker → · Palette generator →

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