#422798#422798

#422798 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.172 H 286.1°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#422798
RGBrgb(66, 39, 152)
HSLhsl(254, 59%, 37%)
HSVhsv(254, 74%, 60%)
CMYKcmyk(56.6%, 74.3%, 0%, 40.4%)
CIE-LABlab(26.38, 42.14, -57.34)
CIE-LCHlch(26.38, 71.16, 306.31°)
OKLaboklab(38.39% 0.0475 -0.165)
OKLCHoklch(38.39% 0.172 286.1)
XYZxyz(8.6381, 4.8758, 30.1856)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422798 #7D9827
analogous
#274598 #422798 #7A2798
triadic
#422798 #984227 #279842
tetradic
#422798 #982745 #7D9827 #27987A
square
#422798 #982745 #7D9827 #27987A
split-complementary
#422798 #987A27 #459827
monochromatic
#180E37 #2D1B67 #422798 #5733C9 #7E63D7

Accessibility & contrast

On white

10.63
#422798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#422798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #422798
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422798#FFFFFF#000000##FFFFFF
##4227981.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003B96
Tritanopia (blue-blind)
#1B465D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #422798;
/* rgb */ color: rgb(66, 39, 152);
/* oklch */ color: oklch(38.4% 0.172 286.1);
Tailwind
colors: {
  custom: {
    50: '#8064b7',
    500: '#422798',
    950: '#000000',
  },
}
SCSS
$custom: #422798;
$custom-light: #8064b7;
$custom-dark: #000000;
JSON
{
  "hex": "#422798",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 254.336,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38394,
    "c": 0.17172,
    "h": 286.1
  },
  "luminance": 0.04876
}

Semantic roles & 50–950 ramp

primary
#422798
secondary
#A6BC5E
accent
#E245BD
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #422798

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

Preview Lab → · Contrast checker → · Palette generator →

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