#120022#120022

#120022 is a very dark, moderate violet. Relative luminance 0.002; OKLCH L 14.5% C 0.075 H 305.7°. Best body text is #FFFFFF at 20.02:1 contrast (WCAG AA passes).

Color values

HEX#120022
RGBrgb(18, 0, 34)
HSLhsl(272, 100%, 7%)
HSVhsv(272, 100%, 13%)
CMYKcmyk(47.1%, 100%, 0%, 86.7%)
CIE-LABlab(2.20, 12.54, -16.89)
CIE-LCHlch(2.20, 21.04, 306.58°)
OKLaboklab(14.5% 0.0437 -0.0609)
OKLCHoklch(14.5% 0.075 305.7)
XYZxyz(0.5381, 0.2441, 1.5318)
Luminance0.0024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120022 #102200
analogous
#010022 #120022 #220021
triadic
#120022 #221200 #002212
tetradic
#120022 #220100 #102200 #002122
square
#120022 #220100 #102200 #002122
split-complementary
#120022 #212200 #002201
monochromatic
#10001F #10001F #120022 #32005F #53009C

Accessibility & contrast

On white

20.02
#120022 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#120022 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120022
20.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120022#FFFFFF#000000##FFFFFF
##1200221.0020.021.0520.02
#FFFFFF20.021.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000823
Deuteranopia (green-blind)
#000821
Tritanopia (blue-blind)
#0F060F
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #120022;
/* rgb */ color: rgb(18, 0, 34);
/* oklch */ color: oklch(14.5% 0.075 305.7);
Tailwind
colors: {
  custom: {
    50: '#4f465d',
    500: '#120022',
    950: '#000000',
  },
}
SCSS
$custom: #120022;
$custom-light: #4f465d;
$custom-dark: #000000;
JSON
{
  "hex": "#120022",
  "rgb": {
    "r": 18,
    "g": 0,
    "b": 34
  },
  "hsl": {
    "h": 271.765,
    "s": 100,
    "l": 6.667
  },
  "oklch": {
    "l": 0.14495,
    "c": 0.07502,
    "h": 305.7
  },
  "luminance": 0.00244
}

Semantic roles & 50–950 ramp

primary
#120022
secondary
#3C6B13
accent
#FF298E
background
#F4F3F5
surface
#E7E5E9
border
#C3C1C5
text
#020004
muted
#787779

Preview Lab

Preview with #120022

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

Preview Lab → · Contrast checker → · Palette generator →

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