#140542#140542

#140542 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.9% C 0.104 H 283.3°. Best body text is #FFFFFF at 18.58:1 contrast (WCAG AA passes).

Color values

HEX#140542
RGBrgb(20, 5, 66)
HSLhsl(255, 86%, 14%)
HSVhsv(255, 92%, 26%)
CMYKcmyk(69.7%, 92.4%, 0%, 74.1%)
CIE-LABlab(5.88, 26.07, -34.89)
CIE-LCHlch(5.88, 43.55, 306.77°)
OKLaboklab(19.91% 0.024 -0.1017)
OKLCHoklch(19.91% 0.105 283.3)
XYZxyz(1.3258, 0.6505, 5.2089)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140542 #334205
analogous
#051542 #140542 #330542
triadic
#140542 #421405 #054214
tetradic
#140542 #420515 #334205 #054233
square
#140542 #420515 #334205 #054233
split-complementary
#140542 #423305 #154205
monochromatic
#09021C #09021C #140542 #25097B #360EB4

Accessibility & contrast

On white

18.58
#140542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140542
18.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140542#FFFFFF#000000##FFFFFF
##1405421.0018.581.1318.58
#FFFFFF18.581.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001544
Deuteranopia (green-blind)
#001141
Tritanopia (blue-blind)
#001824
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #140542;
/* rgb */ color: rgb(20, 5, 66);
/* oklch */ color: oklch(19.9% 0.104 283.3);
Tailwind
colors: {
  custom: {
    50: '#594877',
    500: '#140542',
    950: '#000000',
  },
}
SCSS
$custom: #140542;
$custom-light: #594877;
$custom-dark: #000000;
JSON
{
  "hex": "#140542",
  "rgb": {
    "r": 20,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 254.754,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.19905,
    "c": 0.1045,
    "h": 283.3
  },
  "luminance": 0.00651
}

Semantic roles & 50–950 ramp

primary
#140542
secondary
#6A8220
accent
#FC2CC9
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040009
muted
#79777B

Preview Lab

Preview with #140542

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

Preview Lab → · Contrast checker → · Palette generator →

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