#422282#422282

#422282 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.151 H 292.3°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#422282
RGBrgb(66, 34, 130)
HSLhsl(260, 59%, 32%)
HSVhsv(260, 74%, 51%)
CMYKcmyk(49.2%, 73.8%, 0%, 49%)
CIE-LABlab(23.38, 38.28, -48.58)
CIE-LCHlch(23.38, 61.85, 308.24°)
OKLaboklab(35.65% 0.057 -0.1393)
OKLCHoklch(35.65% 0.151 292.3)
XYZxyz(6.8469, 3.9138, 21.5094)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422282 #628222
analogous
#223282 #422282 #722282
triadic
#422282 #824222 #228242
tetradic
#422282 #822232 #628222 #228272
square
#422282 #822232 #628222 #228272
split-complementary
#422282 #827222 #328222
monochromatic
#110921 #291551 #422282 #5B2FB3 #794ED1

Accessibility & contrast

On white

11.78
#422282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#422282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #422282
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422282#FFFFFF#000000##FFFFFF
##4222821.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003680
Tritanopia (blue-blind)
#2E3B4F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #422282;
/* rgb */ color: rgb(66, 34, 130);
/* oklch */ color: oklch(35.6% 0.151 292.3);
Tailwind
colors: {
  custom: {
    50: '#7d60a7',
    500: '#422282',
    950: '#000000',
  },
}
SCSS
$custom: #422282;
$custom-light: #7d60a7;
$custom-dark: #000000;
JSON
{
  "hex": "#422282",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 260,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35649,
    "c": 0.15051,
    "h": 292.3
  },
  "luminance": 0.03914
}

Semantic roles & 50–950 ramp

primary
#422282
secondary
#91B44C
accent
#E246AE
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #422282

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

Preview Lab → · Contrast checker → · Palette generator →

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