#120647#120647

#120647 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.5% C 0.110 H 279.2°. Best body text is #FFFFFF at 18.38:1 contrast (WCAG AA passes).

Color values

HEX#120647
RGBrgb(18, 6, 71)
HSLhsl(251, 84%, 15%)
HSVhsv(251, 92%, 28%)
CMYKcmyk(74.6%, 91.5%, 0%, 72.2%)
CIE-LABlab(6.45, 27.30, -37.50)
CIE-LCHlch(6.45, 46.38, 306.05°)
OKLaboklab(20.51% 0.0177 -0.1088)
OKLCHoklch(20.51% 0.11 279.2)
XYZxyz(1.4515, 0.7137, 6.0213)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120647 #3B4706
analogous
#061A47 #120647 #330647
triadic
#120647 #471206 #064712
tetradic
#120647 #47061A #3B4706 #064733
square
#120647 #47061A #3B4706 #064733
split-complementary
#120647 #473306 #1A4706
monochromatic
#07021C #07021C #120647 #200B7F #2F10B8

Accessibility & contrast

On white

18.38
#120647 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120647
18.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120647#FFFFFF#000000##FFFFFF
##1206471.0018.381.1418.38
#FFFFFF18.381.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001749
Deuteranopia (green-blind)
#001246
Tritanopia (blue-blind)
#001A27
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #120647;
/* rgb */ color: rgb(18, 6, 71);
/* oklch */ color: oklch(20.5% 0.110 279.2);
Tailwind
colors: {
  custom: {
    50: '#5a487b',
    500: '#120647',
    950: '#000000',
  },
}
SCSS
$custom: #120647;
$custom-light: #5a487b;
$custom-dark: #000000;
JSON
{
  "hex": "#120647",
  "rgb": {
    "r": 18,
    "g": 6,
    "b": 71
  },
  "hsl": {
    "h": 251.077,
    "s": 84.416,
    "l": 15.098
  },
  "oklch": {
    "l": 0.20512,
    "c": 0.11025,
    "h": 279.2
  },
  "luminance": 0.00714
}

Semantic roles & 50–950 ramp

primary
#120647
secondary
#748623
accent
#FB2DD5
background
#F5F4F7
surface
#E9E6EE
border
#C5C2C9
text
#040009
muted
#79777B

Preview Lab

Preview with #120647

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

Preview Lab → · Contrast checker → · Palette generator →

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