#42288E#42288E

#42288E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.158 H 288.0°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#42288E
RGBrgb(66, 40, 142)
HSLhsl(255, 56%, 36%)
HSVhsv(255, 72%, 56%)
CMYKcmyk(53.5%, 71.8%, 0%, 44.3%)
CIE-LABlab(25.65, 38.56, -52.37)
CIE-LCHlch(25.65, 65.04, 306.36°)
OKLaboklab(37.59% 0.0488 -0.1504)
OKLCHoklch(37.59% 0.158 288)
XYZxyz(7.8866, 4.6284, 26.0638)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42288E #748E28
analogous
#28418E #42288E #75288E
triadic
#42288E #8E4228 #288E42
tetradic
#42288E #8E2841 #748E28 #288E75
square
#42288E #8E2841 #748E28 #288E75
split-complementary
#42288E #8E7528 #418E28
monochromatic
#160D2F #2C1B5E #42288E #5835BE #7C5FD2

Accessibility & contrast

On white

10.90
#42288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#42288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42288E
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42288E#FFFFFF#000000##FFFFFF
##42288E1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#254358
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #42288e;
/* rgb */ color: rgb(66, 40, 142);
/* oklch */ color: oklch(37.6% 0.158 288.0);
Tailwind
colors: {
  custom: {
    50: '#7e64b0',
    500: '#42288e',
    950: '#000000',
  },
}
SCSS
$custom: #42288e;
$custom-light: #7e64b0;
$custom-dark: #000000;
JSON
{
  "hex": "#42288e",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 255.294,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37593,
    "c": 0.15817,
    "h": 288
  },
  "luminance": 0.04629
}

Semantic roles & 50–950 ramp

primary
#42288E
secondary
#A0B75B
accent
#DF48B9
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #42288E

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

Preview Lab → · Contrast checker → · Palette generator →

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