#42289A#42289A

#42289A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.173 H 285.5°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#42289A
RGBrgb(66, 40, 154)
HSLhsl(254, 59%, 38%)
HSVhsv(254, 74%, 60%)
CMYKcmyk(57.1%, 74%, 0%, 39.6%)
CIE-LABlab(26.76, 42.20, -57.94)
CIE-LCHlch(26.76, 71.68, 306.07°)
OKLaboklab(38.72% 0.0462 -0.1668)
OKLCHoklch(38.72% 0.173 285.5)
XYZxyz(8.8365, 5.0084, 31.0667)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42289A #809A28
analogous
#28479A #42289A #7B289A
triadic
#42289A #9A4228 #289A42
tetradic
#42289A #9A2847 #809A28 #289A7B
square
#42289A #9A2847 #809A28 #289A7B
split-complementary
#42289A #9A7B28 #479A28
monochromatic
#180F39 #2D1B69 #42289A #5735CA #7F65D7

Accessibility & contrast

On white

10.49
#42289A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#42289A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42289A
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42289A#FFFFFF#000000##FFFFFF
##42289A1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429D
Deuteranopia (green-blind)
#003C98
Tritanopia (blue-blind)
#18475E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #42289a;
/* rgb */ color: rgb(66, 40, 154);
/* oklch */ color: oklch(38.7% 0.173 285.5);
Tailwind
colors: {
  custom: {
    50: '#8065b9',
    500: '#42289a',
    950: '#000000',
  },
}
SCSS
$custom: #42289a;
$custom-light: #8065b9;
$custom-dark: #000000;
JSON
{
  "hex": "#42289a",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 154
  },
  "hsl": {
    "h": 253.684,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38722,
    "c": 0.17306,
    "h": 285.5
  },
  "luminance": 0.05009
}

Semantic roles & 50–950 ramp

primary
#42289A
secondary
#A8BD61
accent
#E246BE
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #42289A

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

Preview Lab → · Contrast checker → · Palette generator →

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