#42155F#42155F

#42155F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.126 H 308.4°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#42155F
RGBrgb(66, 21, 95)
HSLhsl(276, 64%, 23%)
HSVhsv(276, 78%, 37%)
CMYKcmyk(30.5%, 77.9%, 0%, 62.7%)
CIE-LABlab(18.01, 35.34, -34.70)
CIE-LCHlch(18.01, 49.53, 315.52°)
OKLaboklab(30.9% 0.0781 -0.0984)
OKLCHoklch(30.9% 0.126 308.4)
XYZxyz(4.5801, 2.5209, 11.0696)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42155F #325F15
analogous
#1D155F #42155F #5F1557
triadic
#42155F #5F4215 #155F42
tetradic
#42155F #5F1D15 #325F15 #15575F
square
#42155F #5F1D15 #325F15 #15575F
split-complementary
#42155F #575F15 #155F1D
monochromatic
#110619 #1F0A2D #42155F #652091 #882BC3

Accessibility & contrast

On white

13.96
#42155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#42155F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42155F
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42155F#FFFFFF#000000##FFFFFF
##42155F1.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#012D5D
Tritanopia (blue-blind)
#3D2638
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #42155f;
/* rgb */ color: rgb(66, 21, 95);
/* oklch */ color: oklch(30.9% 0.126 308.4);
Tailwind
colors: {
  custom: {
    50: '#7a578d',
    500: '#42155f',
    950: '#000000',
  },
}
SCSS
$custom: #42155f;
$custom-light: #7a578d;
$custom-dark: #000000;
JSON
{
  "hex": "#42155f",
  "rgb": {
    "r": 66,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 276.486,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30898,
    "c": 0.12565,
    "h": 308.4
  },
  "luminance": 0.02521
}

Semantic roles & 50–950 ramp

primary
#42155F
secondary
#5E963A
accent
#E74182
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #42155F

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

Preview Lab → · Contrast checker → · Palette generator →

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