#120540#120540

#120540 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.4% C 0.102 H 282.0°. Best body text is #FFFFFF at 18.73:1 contrast (WCAG AA passes).

Color values

HEX#120540
RGBrgb(18, 5, 64)
HSLhsl(253, 86%, 14%)
HSVhsv(253, 92%, 25%)
CMYKcmyk(71.9%, 92.2%, 0%, 74.9%)
CIE-LABlab(5.48, 24.74, -34.11)
CIE-LCHlch(5.48, 42.14, 305.96°)
OKLaboklab(19.43% 0.0212 -0.1)
OKLCHoklch(19.43% 0.102 282)
XYZxyz(1.2288, 0.6072, 4.9019)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120540 #334005
analogous
#051540 #120540 #2F0540
triadic
#120540 #401205 #054012
tetradic
#120540 #400515 #334005 #05402F
square
#120540 #400515 #334005 #05402F
split-complementary
#120540 #402F05 #154005
monochromatic
#08021C #08021C #120540 #220979 #320EB2

Accessibility & contrast

On white

18.73
#120540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#120540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120540
18.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120540#FFFFFF#000000##FFFFFF
##1205401.0018.731.1218.73
#FFFFFF18.731.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #120540;
/* rgb */ color: rgb(18, 5, 64);
/* oklch */ color: oklch(19.4% 0.102 282.0);
Tailwind
colors: {
  custom: {
    50: '#584876',
    500: '#120540',
    950: '#000000',
  },
}
SCSS
$custom: #120540;
$custom-light: #584876;
$custom-dark: #000000;
JSON
{
  "hex": "#120540",
  "rgb": {
    "r": 18,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 253.22,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.19435,
    "c": 0.10222,
    "h": 282
  },
  "luminance": 0.00607
}

Semantic roles & 50–950 ramp

primary
#120540
secondary
#6B8120
accent
#FC2CCE
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #120540

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

Preview Lab → · Contrast checker → · Palette generator →

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