#4227AD#4227AD

#4227AD is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.197 H 282.3°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#4227AD
RGBrgb(66, 39, 173)
HSLhsl(252, 63%, 42%)
HSVhsv(252, 77%, 68%)
CMYKcmyk(61.8%, 77.5%, 0%, 32.2%)
CIE-LABlab(28.45, 48.43, -66.68)
CIE-LCHlch(28.45, 82.41, 305.99°)
OKLaboklab(40.48% 0.0421 -0.1923)
OKLCHoklch(40.48% 0.197 282.3)
XYZxyz(10.5128, 5.6257, 40.0589)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4227AD #92AD27
analogous
#274FAD #4227AD #8527AD
triadic
#4227AD #AD4227 #27AD42
tetradic
#4227AD #AD274F #92AD27 #27AD85
square
#4227AD #AD274F #92AD27 #27AD85
split-complementary
#4227AD #AD8527 #4FAD27
monochromatic
#1C1049 #2F1C7B #4227AD #5C3ED3 #8670DF

Accessibility & contrast

On white

9.88
#4227AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4227AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4227AD
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4227AD#FFFFFF#000000##FFFFFF
##4227AD1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B1
Deuteranopia (green-blind)
#003EAB
Tritanopia (blue-blind)
#004E69
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4227ad;
/* rgb */ color: rgb(66, 39, 173);
/* oklch */ color: oklch(40.5% 0.197 282.3);
Tailwind
colors: {
  custom: {
    50: '#8465c7',
    500: '#4227ad',
    950: '#000000',
  },
}
SCSS
$custom: #4227ad;
$custom-light: #8465c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4227ad",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 173
  },
  "hsl": {
    "h": 252.09,
    "s": 63.208,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40475,
    "c": 0.19685,
    "h": 282.3
  },
  "luminance": 0.05626
}

Semantic roles & 50–950 ramp

primary
#4227AD
secondary
#B3C66A
accent
#E642C5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4227AD

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

Preview Lab → · Contrast checker → · Palette generator →

#4227AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva