#120422#120422

#120422 is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.7% C 0.063 H 302.2°. Best body text is #FFFFFF at 19.70:1 contrast (WCAG AA passes).

Color values

HEX#120422
RGBrgb(18, 4, 34)
HSLhsl(268, 79%, 7%)
HSVhsv(268, 88%, 13%)
CMYKcmyk(47.1%, 88.2%, 0%, 86.7%)
CIE-LABlab(2.99, 10.94, -15.69)
CIE-LCHlch(2.99, 19.13, 304.87°)
OKLaboklab(15.65% 0.0334 -0.0531)
OKLCHoklch(15.65% 0.063 302.2)
XYZxyz(0.5815, 0.3309, 1.5463)
Luminance0.0033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120422 #142204
analogous
#040522 #120422 #210422
triadic
#120422 #221204 #042212
tetradic
#120422 #220405 #142204 #042221
square
#120422 #220405 #142204 #042221
split-complementary
#120422 #222104 #052204
monochromatic
#0E031B #0E031B #120422 #2F0A59 #4C1190

Accessibility & contrast

On white

19.70
#120422 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120422
19.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120422#FFFFFF#000000##FFFFFF
##1204221.0019.701.0719.70
#FFFFFF19.701.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B23
Deuteranopia (green-blind)
#000B21
Tritanopia (blue-blind)
#0F0A11
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #120422;
/* rgb */ color: rgb(18, 4, 34);
/* oklch */ color: oklch(15.7% 0.063 302.2);
Tailwind
colors: {
  custom: {
    50: '#4f485d',
    500: '#120422',
    950: '#000000',
  },
}
SCSS
$custom: #120422;
$custom-light: #4f485d;
$custom-dark: #000000;
JSON
{
  "hex": "#120422",
  "rgb": {
    "r": 18,
    "g": 4,
    "b": 34
  },
  "hsl": {
    "h": 268,
    "s": 78.947,
    "l": 7.451
  },
  "oklch": {
    "l": 0.15654,
    "c": 0.06268,
    "h": 302.2
  },
  "luminance": 0.00331
}

Semantic roles & 50–950 ramp

primary
#120422
secondary
#43651D
accent
#F5329A
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#020004
muted
#787779

Preview Lab

Preview with #120422

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

Preview Lab → · Contrast checker → · Palette generator →

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