#42155B#42155B

#42155B is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.121 H 310.5°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#42155B
RGBrgb(66, 21, 91)
HSLhsl(279, 63%, 22%)
HSVhsv(279, 77%, 36%)
CMYKcmyk(27.5%, 76.9%, 0%, 64.3%)
CIE-LABlab(17.69, 34.35, -32.56)
CIE-LCHlch(17.69, 47.33, 316.54°)
OKLaboklab(30.57% 0.0788 -0.0921)
OKLCHoklch(30.57% 0.121 310.5)
XYZxyz(4.4029, 2.4500, 10.1365)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42155B #2E5B15
analogous
#1F155B #42155B #5B1551
triadic
#42155B #5B4215 #155B42
tetradic
#42155B #5B1F15 #2E5B15 #15515B
square
#42155B #5B1F15 #2E5B15 #15515B
split-complementary
#42155B #515B15 #155B1F
monochromatic
#120619 #1E0A29 #42155B #66208D #8A2CBE

Accessibility & contrast

On white

14.09
#42155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#42155B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42155B
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42155B#FFFFFF#000000##FFFFFF
##42155B1.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#092C59
Tritanopia (blue-blind)
#3F2536
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #42155b;
/* rgb */ color: rgb(66, 21, 91);
/* oklch */ color: oklch(30.6% 0.121 310.5);
Tailwind
colors: {
  custom: {
    50: '#79578a',
    500: '#42155b',
    950: '#000000',
  },
}
SCSS
$custom: #42155b;
$custom-light: #79578a;
$custom-dark: #000000;
JSON
{
  "hex": "#42155b",
  "rgb": {
    "r": 66,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 278.571,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.30568,
    "c": 0.12123,
    "h": 310.5
  },
  "luminance": 0.0245
}

Semantic roles & 50–950 ramp

primary
#42155B
secondary
#599239
accent
#E6427D
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #42155B

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

Preview Lab → · Contrast checker → · Palette generator →

#42155B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva