#42249A#42249A

#42249A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.177 H 286.2°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#42249A
RGBrgb(66, 36, 154)
HSLhsl(255, 62%, 37%)
HSVhsv(255, 77%, 60%)
CMYKcmyk(57.1%, 76.6%, 0%, 39.6%)
CIE-LABlab(26.02, 44.30, -59.16)
CIE-LCHlch(26.02, 73.91, 306.82°)
OKLaboklab(38.2% 0.0493 -0.1703)
OKLCHoklch(38.2% 0.177 286.2)
XYZxyz(8.7086, 4.7526, 31.0240)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42249A #7C9A24
analogous
#24419A #42249A #7D249A
triadic
#42249A #9A4224 #249A42
tetradic
#42249A #9A2441 #7C9A24 #249A7D
square
#42249A #9A2441 #7C9A24 #249A7D
split-complementary
#42249A #9A7D24 #419A24
monochromatic
#170D37 #2D1868 #42249A #5730CC #7E5FDA

Accessibility & contrast

On white

10.77
#42249A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#42249A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42249A
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42249A#FFFFFF#000000##FFFFFF
##42249A1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419D
Deuteranopia (green-blind)
#003A98
Tritanopia (blue-blind)
#18455D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #42249a;
/* rgb */ color: rgb(66, 36, 154);
/* oklch */ color: oklch(38.2% 0.177 286.2);
Tailwind
colors: {
  custom: {
    50: '#8162b9',
    500: '#42249a',
    950: '#000000',
  },
}
SCSS
$custom: #42249a;
$custom-light: #8162b9;
$custom-dark: #000000;
JSON
{
  "hex": "#42249a",
  "rgb": {
    "r": 66,
    "g": 36,
    "b": 154
  },
  "hsl": {
    "h": 255.254,
    "s": 62.105,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38199,
    "c": 0.17732,
    "h": 286.2
  },
  "luminance": 0.04753
}

Semantic roles & 50–950 ramp

primary
#42249A
secondary
#A5BF5B
accent
#E543BC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #42249A

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

Preview Lab → · Contrast checker → · Palette generator →

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