#42248A#42248A

#42248A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.158 H 289.7°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#42248A
RGBrgb(66, 36, 138)
HSLhsl(258, 59%, 34%)
HSVhsv(258, 74%, 54%)
CMYKcmyk(52.2%, 73.9%, 0%, 45.9%)
CIE-LABlab(24.50, 39.56, -51.77)
CIE-LCHlch(24.50, 65.16, 307.38°)
OKLaboklab(36.66% 0.0534 -0.1487)
OKLCHoklch(36.66% 0.158 289.7)
XYZxyz(7.4638, 4.2547, 24.4678)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42248A #6C8A24
analogous
#24398A #42248A #75248A
triadic
#42248A #8A4224 #248A42
tetradic
#42248A #8A2439 #6C8A24 #248A75
square
#42248A #8A2439 #6C8A24 #248A75
split-complementary
#42248A #8A7524 #398A24
monochromatic
#140B29 #2B1759 #42248A #5931BB #7A56D3

Accessibility & contrast

On white

11.35
#42248A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#42248A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42248A
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42248A#FFFFFF#000000##FFFFFF
##42248A1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003888
Tritanopia (blue-blind)
#283F54
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #42248a;
/* rgb */ color: rgb(66, 36, 138);
/* oklch */ color: oklch(36.7% 0.158 289.7);
Tailwind
colors: {
  custom: {
    50: '#7e62ad',
    500: '#42248a',
    950: '#000000',
  },
}
SCSS
$custom: #42248a;
$custom-light: #7e62ad;
$custom-dark: #000000;
JSON
{
  "hex": "#42248a",
  "rgb": {
    "r": 66,
    "g": 36,
    "b": 138
  },
  "hsl": {
    "h": 257.647,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36661,
    "c": 0.15795,
    "h": 289.7
  },
  "luminance": 0.04255
}

Semantic roles & 50–950 ramp

primary
#42248A
secondary
#9AB753
accent
#E246B4
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #42248A

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

Preview Lab → · Contrast checker → · Palette generator →

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