#42229A#42229A

#42229A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.179 H 286.5°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#42229A
RGBrgb(66, 34, 154)
HSLhsl(256, 64%, 37%)
HSVhsv(256, 78%, 60%)
CMYKcmyk(57.1%, 77.9%, 0%, 39.6%)
CIE-LABlab(25.67, 45.30, -59.74)
CIE-LCHlch(25.67, 74.97, 307.17°)
OKLaboklab(37.95% 0.0508 -0.172)
OKLCHoklch(37.95% 0.179 286.5)
XYZxyz(8.6498, 4.6349, 31.0044)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42229A #7A9A22
analogous
#223E9A #42229A #7E229A
triadic
#42229A #9A4222 #229A42
tetradic
#42229A #9A223E #7A9A22 #229A7E
square
#42229A #9A223E #7A9A22 #229A7E
split-complementary
#42229A #9A7E22 #3E9A22
monochromatic
#170C36 #2D1768 #42229A #572DCC #7D5BDB

Accessibility & contrast

On white

10.90
#42229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#42229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42229A
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42229A#FFFFFF#000000##FFFFFF
##42229A1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409D
Deuteranopia (green-blind)
#003998
Tritanopia (blue-blind)
#18445D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #42229a;
/* rgb */ color: rgb(66, 34, 154);
/* oklch */ color: oklch(38.0% 0.179 286.5);
Tailwind
colors: {
  custom: {
    50: '#8161b9',
    500: '#42229a',
    950: '#000000',
  },
}
SCSS
$custom: #42229a;
$custom-light: #8161b9;
$custom-dark: #000000;
JSON
{
  "hex": "#42229a",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 256,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37954,
    "c": 0.17933,
    "h": 286.5
  },
  "luminance": 0.04635
}

Semantic roles & 50–950 ramp

primary
#42229A
secondary
#A4BF58
accent
#E741BB
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #42229A

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

Preview Lab → · Contrast checker → · Palette generator →

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