#120640#120640

#120640 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.6% C 0.101 H 281.6°. Best body text is #FFFFFF at 18.65:1 contrast (WCAG AA passes).

Color values

HEX#120640
RGBrgb(18, 6, 64)
HSLhsl(252, 83%, 14%)
HSVhsv(252, 91%, 25%)
CMYKcmyk(71.9%, 90.6%, 0%, 74.9%)
CIE-LABlab(5.68, 24.24, -33.79)
CIE-LCHlch(5.68, 41.58, 305.66°)
OKLaboklab(19.61% 0.0203 -0.0988)
OKLCHoklch(19.61% 0.101 281.6)
XYZxyz(1.2397, 0.6289, 4.9056)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120640 #344006
analogous
#061740 #120640 #2F0640
triadic
#120640 #401206 #064012
tetradic
#120640 #400617 #344006 #06402F
square
#120640 #400617 #344006 #06402F
split-complementary
#120640 #402F06 #174006
monochromatic
#08031C #08031C #120640 #220B78 #3110B0

Accessibility & contrast

On white

18.65
#120640 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#120640 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120640
18.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120640#FFFFFF#000000##FFFFFF
##1206401.0018.651.1318.65
#FFFFFF18.651.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001442
Deuteranopia (green-blind)
#00103F
Tritanopia (blue-blind)
#001723
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #120640;
/* rgb */ color: rgb(18, 6, 64);
/* oklch */ color: oklch(19.6% 0.101 281.6);
Tailwind
colors: {
  custom: {
    50: '#574876',
    500: '#120640',
    950: '#000000',
  },
}
SCSS
$custom: #120640;
$custom-light: #574876;
$custom-dark: #000000;
JSON
{
  "hex": "#120640",
  "rgb": {
    "r": 18,
    "g": 6,
    "b": 64
  },
  "hsl": {
    "h": 252.414,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.19607,
    "c": 0.10089,
    "h": 281.6
  },
  "luminance": 0.00629
}

Semantic roles & 50–950 ramp

primary
#120640
secondary
#6C8022
accent
#F92FCF
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #120640

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

Preview Lab → · Contrast checker → · Palette generator →

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