#42227D#42227D

#42227D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.2% C 0.144 H 293.7°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#42227D
RGBrgb(66, 34, 125)
HSLhsl(261, 57%, 31%)
HSVhsv(261, 73%, 49%)
CMYKcmyk(47.2%, 72.8%, 0%, 51%)
CIE-LABlab(22.94, 36.83, -46.14)
CIE-LCHlch(22.94, 59.04, 308.60°)
OKLaboklab(35.2% 0.0581 -0.1321)
OKLCHoklch(35.2% 0.144 293.7)
XYZxyz(6.5195, 3.7828, 19.7847)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42227D #5D7D22
analogous
#222F7D #42227D #6F227D
triadic
#42227D #7D4222 #227D42
tetradic
#42227D #7D222F #5D7D22 #227D6F
square
#42227D #7D222F #5D7D22 #227D6F
split-complementary
#42227D #7D6F22 #2F7D22
monochromatic
#0F081D #29154D #42227D #5B2FAD #794BCE

Accessibility & contrast

On white

11.95
#42227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#42227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42227D
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42227D#FFFFFF#000000##FFFFFF
##42227D1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#31394D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #42227d;
/* rgb */ color: rgb(66, 34, 125);
/* oklch */ color: oklch(35.2% 0.144 293.7);
Tailwind
colors: {
  custom: {
    50: '#7c60a3',
    500: '#42227d',
    950: '#000000',
  },
}
SCSS
$custom: #42227d;
$custom-light: #7c60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#42227d",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 261.099,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35195,
    "c": 0.14435,
    "h": 293.7
  },
  "luminance": 0.03783
}

Semantic roles & 50–950 ramp

primary
#42227D
secondary
#8CB04B
accent
#E047AB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #42227D

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

Preview Lab → · Contrast checker → · Palette generator →

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