#422797#422797

#422797 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.171 H 286.3°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#422797
RGBrgb(66, 39, 151)
HSLhsl(254, 59%, 37%)
HSVhsv(254, 74%, 59%)
CMYKcmyk(56.3%, 74.2%, 0%, 40.8%)
CIE-LABlab(26.28, 41.83, -56.89)
CIE-LCHlch(26.28, 70.61, 306.33°)
OKLaboklab(38.3% 0.0477 -0.1637)
OKLCHoklch(38.3% 0.171 286.3)
XYZxyz(8.5565, 4.8432, 29.7561)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422797 #7C9727
analogous
#274497 #422797 #7A2797
triadic
#422797 #974227 #279742
tetradic
#422797 #972744 #7C9727 #27977A
square
#422797 #972744 #7C9727 #27977A
split-complementary
#422797 #977A27 #449727
monochromatic
#170E36 #2D1A66 #422797 #5734C8 #7E62D6

Accessibility & contrast

On white

10.67
#422797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#422797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #422797
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422797#FFFFFF#000000##FFFFFF
##4227971.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#1C455D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #422797;
/* rgb */ color: rgb(66, 39, 151);
/* oklch */ color: oklch(38.3% 0.171 286.3);
Tailwind
colors: {
  custom: {
    50: '#8064b7',
    500: '#422797',
    950: '#000000',
  },
}
SCSS
$custom: #422797;
$custom-light: #8064b7;
$custom-dark: #000000;
JSON
{
  "hex": "#422797",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 254.464,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38298,
    "c": 0.1705,
    "h": 286.3
  },
  "luminance": 0.04844
}

Semantic roles & 50–950 ramp

primary
#422797
secondary
#A5BC5E
accent
#E246BC
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #422797

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

Preview Lab → · Contrast checker → · Palette generator →

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