#42227A#42227A

#42227A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.141 H 294.7°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#42227A
RGBrgb(66, 34, 122)
HSLhsl(262, 56%, 31%)
HSVhsv(262, 72%, 48%)
CMYKcmyk(45.9%, 72.1%, 0%, 52.2%)
CIE-LABlab(22.68, 35.96, -44.66)
CIE-LCHlch(22.68, 57.34, 308.84°)
OKLaboklab(34.93% 0.0587 -0.1278)
OKLCHoklch(34.93% 0.141 294.7)
XYZxyz(6.3307, 3.7073, 18.7906)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42227A #5A7A22
analogous
#222E7A #42227A #6E227A
triadic
#42227A #7A4222 #227A42
tetradic
#42227A #7A222E #5A7A22 #227A6E
square
#42227A #7A222E #5A7A22 #227A6E
split-complementary
#42227A #7A6E22 #2E7A22
monochromatic
#0E071A #28154A #42227A #5C2FAA #794ACD

Accessibility & contrast

On white

12.06
#42227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#42227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42227A
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42227A#FFFFFF#000000##FFFFFF
##42227A1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003578
Tritanopia (blue-blind)
#32384B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #42227a;
/* rgb */ color: rgb(66, 34, 122);
/* oklch */ color: oklch(34.9% 0.141 294.7);
Tailwind
colors: {
  custom: {
    50: '#7c60a1',
    500: '#42227a',
    950: '#000000',
  },
}
SCSS
$custom: #42227a;
$custom-light: #7c60a1;
$custom-dark: #000000;
JSON
{
  "hex": "#42227a",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 261.818,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34928,
    "c": 0.14062,
    "h": 294.7
  },
  "luminance": 0.03707
}

Semantic roles & 50–950 ramp

primary
#42227A
secondary
#89AD4B
accent
#E048A9
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #42227A

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

Preview Lab → · Contrast checker → · Palette generator →

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