#42287C#42287C

#42287C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.0% C 0.135 H 292.5°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#42287C
RGBrgb(66, 40, 124)
HSLhsl(259, 51%, 32%)
HSVhsv(259, 68%, 49%)
CMYKcmyk(46.8%, 67.7%, 0%, 51.4%)
CIE-LABlab(24.10, 33.11, -43.62)
CIE-LCHlch(24.10, 54.76, 307.20°)
OKLaboklab(36% 0.0518 -0.1247)
OKLCHoklch(36% 0.135 292.5)
XYZxyz(6.6426, 4.1309, 19.5122)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42287C #627C28
analogous
#28387C #42287C #6C287C
triadic
#42287C #7C4228 #287C42
tetradic
#42287C #7C2838 #627C28 #287C6C
square
#42287C #7C2838 #627C28 #287C6C
split-complementary
#42287C #7C6C28 #387C28
monochromatic
#110A1F #29194E #42287C #5B37AA #7956C8

Accessibility & contrast

On white

11.50
#42287C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#42287C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42287C
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42287C#FFFFFF#000000##FFFFFF
##42287C1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#313C4E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #42287c;
/* rgb */ color: rgb(66, 40, 124);
/* oklch */ color: oklch(36.0% 0.135 292.5);
Tailwind
colors: {
  custom: {
    50: '#7c64a3',
    500: '#42287c',
    950: '#000000',
  },
}
SCSS
$custom: #42287c;
$custom-light: #7c64a3;
$custom-dark: #000000;
JSON
{
  "hex": "#42287c",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 124
  },
  "hsl": {
    "h": 258.571,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36,
    "c": 0.13505,
    "h": 292.5
  },
  "luminance": 0.04131
}

Semantic roles & 50–950 ramp

primary
#42287C
secondary
#91AD52
accent
#DB4DAF
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F

Preview Lab

Preview with #42287C

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

Preview Lab → · Contrast checker → · Palette generator →

#42287C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva