#4227AC#4227AC

#4227AC is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.196 H 282.5°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#4227AC
RGBrgb(66, 39, 172)
HSLhsl(252, 63%, 41%)
HSVhsv(252, 77%, 67%)
CMYKcmyk(61.6%, 77.3%, 0%, 32.5%)
CIE-LABlab(28.35, 48.13, -66.24)
CIE-LCHlch(28.35, 81.88, 306.00°)
OKLaboklab(40.37% 0.0423 -0.191)
OKLCHoklch(40.37% 0.196 282.5)
XYZxyz(10.4164, 5.5871, 39.5512)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4227AC #91AC27
analogous
#274FAC #4227AC #8527AC
triadic
#4227AC #AC4227 #27AC42
tetradic
#4227AC #AC274F #91AC27 #27AC85
square
#4227AC #AC274F #91AC27 #27AC85
split-complementary
#4227AC #AC8527 #4FAC27
monochromatic
#1C1048 #2F1C7A #4227AC #5C3DD3 #866FDE

Accessibility & contrast

On white

9.92
#4227AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4227AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4227AC
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4227AC#FFFFFF#000000##FFFFFF
##4227AC1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B0
Deuteranopia (green-blind)
#003EAA
Tritanopia (blue-blind)
#004E68
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4227ac;
/* rgb */ color: rgb(66, 39, 172);
/* oklch */ color: oklch(40.4% 0.196 282.5);
Tailwind
colors: {
  custom: {
    50: '#8465c6',
    500: '#4227ac',
    950: '#000000',
  },
}
SCSS
$custom: #4227ac;
$custom-light: #8465c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4227ac",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 172
  },
  "hsl": {
    "h": 252.18,
    "s": 63.033,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40373,
    "c": 0.19568,
    "h": 282.5
  },
  "luminance": 0.05588
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4227AC

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

Preview Lab → · Contrast checker → · Palette generator →

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