#150542#150542

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

Color values

HEX#150542
RGBrgb(21, 5, 66)
HSLhsl(256, 86%, 14%)
HSVhsv(256, 92%, 26%)
CMYKcmyk(68.2%, 92.4%, 0%, 74.1%)
CIE-LABlab(5.97, 26.28, -34.72)
CIE-LCHlch(5.97, 43.55, 307.12°)
OKLaboklab(20.02% 0.0259 -0.1011)
OKLCHoklch(20.02% 0.104 284.4)
XYZxyz(1.3466, 0.6612, 5.2099)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#150542 #324205
analogous
#051442 #150542 #340542
triadic
#150542 #421505 #054215
tetradic
#150542 #420514 #324205 #054234
square
#150542 #420514 #324205 #054234
split-complementary
#150542 #423405 #144205
monochromatic
#09021C #09021C #150542 #27097B #390EB4

Accessibility & contrast

On white

18.55
#150542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #150542
18.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##150542#FFFFFF#000000##FFFFFF
##1505421.0018.551.1318.55
#FFFFFF18.551.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.551.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: #150542;
/* rgb */ color: rgb(21, 5, 66);
/* oklch */ color: oklch(20.0% 0.104 284.4);
Tailwind
colors: {
  custom: {
    50: '#5a4877',
    500: '#150542',
    950: '#000000',
  },
}
SCSS
$custom: #150542;
$custom-light: #5a4877;
$custom-dark: #000000;
JSON
{
  "hex": "#150542",
  "rgb": {
    "r": 21,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 255.738,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.20015,
    "c": 0.10436,
    "h": 284.4
  },
  "luminance": 0.00661
}

Semantic roles & 50–950 ramp

primary
#150542
secondary
#698220
accent
#FC2CC5
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040009
muted
#79777B

Preview Lab

Preview with #150542

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

Preview Lab → · Contrast checker → · Palette generator →

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