#42155E#42155E

#42155E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.125 H 308.9°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#42155E
RGBrgb(66, 21, 94)
HSLhsl(277, 63%, 23%)
HSVhsv(277, 78%, 37%)
CMYKcmyk(29.8%, 77.7%, 0%, 63.1%)
CIE-LABlab(17.93, 35.09, -34.17)
CIE-LCHlch(17.93, 48.98, 315.76°)
OKLaboklab(30.81% 0.0783 -0.0969)
OKLCHoklch(30.81% 0.125 308.9)
XYZxyz(4.5349, 2.5028, 10.8317)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42155E #315E15
analogous
#1D155E #42155E #5E1556
triadic
#42155E #5E4215 #155E42
tetradic
#42155E #5E1D15 #315E15 #15565E
square
#42155E #5E1D15 #315E15 #15565E
split-complementary
#42155E #565E15 #155E1D
monochromatic
#120619 #1F0A2C #42155E #652090 #882BC2

Accessibility & contrast

On white

13.99
#42155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42155E
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42155E#FFFFFF#000000##FFFFFF
##42155E1.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#032C5C
Tritanopia (blue-blind)
#3E2638
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #42155e;
/* rgb */ color: rgb(66, 21, 94);
/* oklch */ color: oklch(30.8% 0.125 308.9);
Tailwind
colors: {
  custom: {
    50: '#7a578c',
    500: '#42155e',
    950: '#000000',
  },
}
SCSS
$custom: #42155e;
$custom-light: #7a578c;
$custom-dark: #000000;
JSON
{
  "hex": "#42155e",
  "rgb": {
    "r": 66,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 276.986,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30814,
    "c": 0.12455,
    "h": 308.9
  },
  "luminance": 0.02503
}

Semantic roles & 50–950 ramp

primary
#42155E
secondary
#5D9539
accent
#E74181
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #42155E

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

Preview Lab → · Contrast checker → · Palette generator →

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