#422277#422277

#422277 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.137 H 295.6°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#422277
RGBrgb(66, 34, 119)
HSLhsl(263, 56%, 30%)
HSVhsv(263, 71%, 47%)
CMYKcmyk(44.5%, 71.4%, 0%, 53.3%)
CIE-LABlab(22.42, 35.09, -43.17)
CIE-LCHlch(22.42, 55.63, 309.11°)
OKLaboklab(34.67% 0.0592 -0.1234)
OKLCHoklch(34.67% 0.137 295.6)
XYZxyz(6.1477, 3.6341, 17.8267)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422277 #577722
analogous
#222D77 #422277 #6C2277
triadic
#422277 #774222 #227742
tetradic
#422277 #77222D #577722 #22776C
square
#422277 #77222D #577722 #22776C
split-complementary
#422277 #776C22 #2D7722
monochromatic
#0D0718 #281447 #422277 #5C30A7 #7A49CB

Accessibility & contrast

On white

12.16
#422277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#422277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #422277
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422277#FFFFFF#000000##FFFFFF
##4222771.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367A
Deuteranopia (green-blind)
#003475
Tritanopia (blue-blind)
#343749
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #422277;
/* rgb */ color: rgb(66, 34, 119);
/* oklch */ color: oklch(34.7% 0.137 295.6);
Tailwind
colors: {
  custom: {
    50: '#7c609f',
    500: '#422277',
    950: '#000000',
  },
}
SCSS
$custom: #422277;
$custom-light: #7c609f;
$custom-dark: #000000;
JSON
{
  "hex": "#422277",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 262.588,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.34665,
    "c": 0.13687,
    "h": 295.6
  },
  "luminance": 0.03634
}

Semantic roles & 50–950 ramp

primary
#422277
secondary
#86AA4B
accent
#DF49A6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #422277

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

Preview Lab → · Contrast checker → · Palette generator →

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