#422262#422262

#422262 is a dark, moderate violet. Relative luminance 0.032; OKLCH L 32.9% C 0.110 H 304.0°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#422262
RGBrgb(66, 34, 98)
HSLhsl(270, 48%, 26%)
HSVhsv(270, 65%, 38%)
CMYKcmyk(32.7%, 65.3%, 0%, 61.6%)
CIE-LABlab(20.77, 29.15, -32.24)
CIE-LCHlch(20.77, 43.47, 312.12°)
OKLaboklab(32.95% 0.0616 -0.0913)
OKLCHoklch(32.95% 0.11 304)
XYZxyz(5.0229, 3.1842, 11.9029)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422262 #426222
analogous
#222262 #422262 #622262
triadic
#422262 #624222 #226242
tetradic
#422262 #622222 #426222 #226262
square
#422262 #622222 #426222 #226262
split-complementary
#422262 #626222 #226222
monochromatic
#0F0817 #231235 #422262 #61328F #7F42BD

Accessibility & contrast

On white

12.83
#422262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#422262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #422262
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422262#FFFFFF#000000##FFFFFF
##4222621.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003164
Deuteranopia (green-blind)
#123261
Tritanopia (blue-blind)
#3C2F3E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #422262;
/* rgb */ color: rgb(66, 34, 98);
/* oklch */ color: oklch(32.9% 0.110 304.0);
Tailwind
colors: {
  custom: {
    50: '#795f8f',
    500: '#422262',
    950: '#000000',
  },
}
SCSS
$custom: #422262;
$custom-light: #795f8f;
$custom-dark: #000000;
JSON
{
  "hex": "#422262",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 98
  },
  "hsl": {
    "h": 270,
    "s": 48.485,
    "l": 25.882
  },
  "oklch": {
    "l": 0.32948,
    "c": 0.11008,
    "h": 304
  },
  "luminance": 0.03184
}

Semantic roles & 50–950 ramp

primary
#422262
secondary
#70964A
accent
#D85094
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #422262

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

Preview Lab → · Contrast checker → · Palette generator →

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