#422297#422297

#422297 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.176 H 287.1°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#422297
RGBrgb(66, 34, 151)
HSLhsl(256, 63%, 36%)
HSVhsv(256, 77%, 59%)
CMYKcmyk(56.3%, 77.5%, 0%, 40.8%)
CIE-LABlab(25.37, 44.42, -58.39)
CIE-LCHlch(25.37, 73.36, 307.26°)
OKLaboklab(37.66% 0.0517 -0.168)
OKLCHoklch(37.66% 0.176 287.1)
XYZxyz(8.4030, 4.5362, 29.7050)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422297 #779722
analogous
#223D97 #422297 #7D2297
triadic
#422297 #974222 #229742
tetradic
#422297 #97223D #779722 #22977D
square
#422297 #97223D #779722 #22977D
split-complementary
#422297 #977D22 #3D9722
monochromatic
#160C33 #2C1765 #422297 #582DC9 #7D5ADA

Accessibility & contrast

On white

11.01
#422297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#422297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #422297
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422297#FFFFFF#000000##FFFFFF
##4222971.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#1C435B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #422297;
/* rgb */ color: rgb(66, 34, 151);
/* oklch */ color: oklch(37.7% 0.176 287.1);
Tailwind
colors: {
  custom: {
    50: '#8061b7',
    500: '#422297',
    950: '#000000',
  },
}
SCSS
$custom: #422297;
$custom-light: #8061b7;
$custom-dark: #000000;
JSON
{
  "hex": "#422297",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 256.41,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37656,
    "c": 0.17579,
    "h": 287.1
  },
  "luminance": 0.04537
}

Semantic roles & 50–950 ramp

primary
#422297
secondary
#A2BE57
accent
#E642B9
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #422297

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

Preview Lab → · Contrast checker → · Palette generator →

#422297 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva