#422796#422796

#422796 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.169 H 286.5°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#422796
RGBrgb(66, 39, 150)
HSLhsl(255, 59%, 37%)
HSVhsv(255, 74%, 59%)
CMYKcmyk(56%, 74%, 0%, 41.2%)
CIE-LABlab(26.19, 41.53, -56.43)
CIE-LCHlch(26.19, 70.06, 306.36°)
OKLaboklab(38.2% 0.048 -0.1623)
OKLCHoklch(38.2% 0.169 286.5)
XYZxyz(8.4757, 4.8108, 29.3302)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422796 #7B9627
analogous
#274396 #422796 #7A2796
triadic
#422796 #964227 #279642
tetradic
#422796 #962743 #7B9627 #27967A
square
#422796 #962743 #7B9627 #27967A
split-complementary
#422796 #967A27 #439627
monochromatic
#170E35 #2D1A65 #422796 #5734C7 #7E61D6

Accessibility & contrast

On white

10.70
#422796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#422796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #422796
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422796#FFFFFF#000000##FFFFFF
##4227961.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#1D455C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #422796;
/* rgb */ color: rgb(66, 39, 150);
/* oklch */ color: oklch(38.2% 0.169 286.5);
Tailwind
colors: {
  custom: {
    50: '#8064b6',
    500: '#422796',
    950: '#000000',
  },
}
SCSS
$custom: #422796;
$custom-light: #8064b6;
$custom-dark: #000000;
JSON
{
  "hex": "#422796",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 254.595,
    "s": 58.73,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38203,
    "c": 0.16927,
    "h": 286.5
  },
  "luminance": 0.04811
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #422796

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

Preview Lab → · Contrast checker → · Palette generator →

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