#42288A#42288A

#42288A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.153 H 288.9°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#42288A
RGBrgb(66, 40, 138)
HSLhsl(256, 55%, 35%)
HSVhsv(256, 71%, 54%)
CMYKcmyk(52.2%, 71%, 0%, 45.9%)
CIE-LABlab(25.29, 37.35, -50.47)
CIE-LCHlch(25.29, 62.79, 306.50°)
OKLaboklab(37.23% 0.0496 -0.1449)
OKLCHoklch(37.23% 0.153 288.9)
XYZxyz(7.5917, 4.5105, 24.5104)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42288A #708A28
analogous
#283F8A #42288A #73288A
triadic
#42288A #8A4228 #288A42
tetradic
#42288A #8A283F #708A28 #288A73
square
#42288A #8A283F #708A28 #288A73
split-complementary
#42288A #8A7328 #3F8A28
monochromatic
#150C2B #2B1A5B #42288A #5936B9 #7B5DD0

Accessibility & contrast

On white

11.04
#42288A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#42288A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42288A
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42288A#FFFFFF#000000##FFFFFF
##42288A1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#284156
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #42288a;
/* rgb */ color: rgb(66, 40, 138);
/* oklch */ color: oklch(37.2% 0.153 288.9);
Tailwind
colors: {
  custom: {
    50: '#7e64ad',
    500: '#42288a',
    950: '#000000',
  },
}
SCSS
$custom: #42288a;
$custom-light: #7e64ad;
$custom-dark: #000000;
JSON
{
  "hex": "#42288a",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 255.918,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.37228,
    "c": 0.15312,
    "h": 288.9
  },
  "luminance": 0.04511
}

Semantic roles & 50–950 ramp

primary
#42288A
secondary
#9DB559
accent
#DE49B7
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #42288A

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

Preview Lab → · Contrast checker → · Palette generator →

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