#120843#120843

#120843 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.3% C 0.102 H 279.9°. Best body text is #FFFFFF at 18.40:1 contrast (WCAG AA passes).

Color values

HEX#120843
RGBrgb(18, 8, 67)
HSLhsl(250, 79%, 15%)
HSVhsv(250, 88%, 26%)
CMYKcmyk(73.1%, 88.1%, 0%, 73.7%)
CIE-LABlab(6.39, 24.55, -34.76)
CIE-LCHlch(6.39, 42.56, 305.23°)
OKLaboklab(20.31% 0.0177 -0.101)
OKLCHoklch(20.31% 0.103 279.9)
XYZxyz(1.3491, 0.7074, 5.3746)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120843 #394308
analogous
#081C43 #120843 #2F0843
triadic
#120843 #431208 #084312
tetradic
#120843 #43081C #394308 #08432F
square
#120843 #43081C #394308 #08432F
split-complementary
#120843 #432F08 #1C4308
monochromatic
#07031B #07031B #120843 #210F7A #2F15B0

Accessibility & contrast

On white

18.40
#120843 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#120843 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120843
18.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120843#FFFFFF#000000##FFFFFF
##1208431.0018.401.1418.40
#FFFFFF18.401.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001645
Deuteranopia (green-blind)
#001242
Tritanopia (blue-blind)
#001A25
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #120843;
/* rgb */ color: rgb(18, 8, 67);
/* oklch */ color: oklch(20.3% 0.102 279.9);
Tailwind
colors: {
  custom: {
    50: '#584978',
    500: '#120843',
    950: '#000000',
  },
}
SCSS
$custom: #120843;
$custom-light: #584978;
$custom-dark: #000000;
JSON
{
  "hex": "#120843",
  "rgb": {
    "r": 18,
    "g": 8,
    "b": 67
  },
  "hsl": {
    "h": 250.169,
    "s": 78.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.20314,
    "c": 0.1025,
    "h": 279.9
  },
  "luminance": 0.00708
}

Semantic roles & 50–950 ramp

primary
#120843
secondary
#728125
accent
#F533D4
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #120843

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

Preview Lab → · Contrast checker → · Palette generator →

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