#42298E#42298E

#42298E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.7% C 0.157 H 287.8°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#42298E
RGBrgb(66, 41, 142)
HSLhsl(255, 55%, 36%)
HSVhsv(255, 71%, 56%)
CMYKcmyk(53.5%, 71.1%, 0%, 44.3%)
CIE-LABlab(25.85, 38.00, -52.04)
CIE-LCHlch(25.85, 64.44, 306.14°)
OKLaboklab(37.74% 0.0479 -0.1495)
OKLCHoklch(37.74% 0.157 287.8)
XYZxyz(7.9208, 4.6967, 26.0751)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42298E #758E29
analogous
#29438E #42298E #74298E
triadic
#42298E #8E4229 #298E42
tetradic
#42298E #8E2943 #758E29 #298E74
square
#42298E #8E2943 #758E29 #298E74
split-complementary
#42298E #8E7429 #438E29
monochromatic
#160E2F #2C1B5F #42298E #5837BD #7C60D1

Accessibility & contrast

On white

10.83
#42298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#42298E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42298E
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42298E#FFFFFF#000000##FFFFFF
##42298E1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #42298e;
/* rgb */ color: rgb(66, 41, 142);
/* oklch */ color: oklch(37.7% 0.157 287.8);
Tailwind
colors: {
  custom: {
    50: '#7e65b0',
    500: '#42298e',
    950: '#000000',
  },
}
SCSS
$custom: #42298e;
$custom-light: #7e65b0;
$custom-dark: #000000;
JSON
{
  "hex": "#42298e",
  "rgb": {
    "r": 66,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 254.851,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37738,
    "c": 0.15695,
    "h": 287.8
  },
  "luminance": 0.04697
}

Semantic roles & 50–950 ramp

primary
#42298E
secondary
#A0B75C
accent
#DF49BA
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #42298E

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

Preview Lab → · Contrast checker → · Palette generator →

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