#4227AB#4227AB

#4227AB is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.194 H 282.7°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#4227AB
RGBrgb(66, 39, 171)
HSLhsl(252, 63%, 41%)
HSVhsv(252, 77%, 67%)
CMYKcmyk(61.4%, 77.2%, 0%, 32.9%)
CIE-LABlab(28.24, 47.83, -65.81)
CIE-LCHlch(28.24, 81.36, 306.01°)
OKLaboklab(40.27% 0.0426 -0.1898)
OKLCHoklch(40.27% 0.194 282.7)
XYZxyz(10.3207, 5.5488, 39.0474)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4227AB #90AB27
analogous
#274EAB #4227AB #8427AB
triadic
#4227AB #AB4227 #27AB42
tetradic
#4227AB #AB274E #90AB27 #27AB84
square
#4227AB #AB274E #90AB27 #27AB84
split-complementary
#4227AB #AB8427 #4EAB27
monochromatic
#1C1047 #2F1C79 #4227AB #5B3DD3 #856EDE

Accessibility & contrast

On white

9.95
#4227AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4227AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4227AB
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4227AB#FFFFFF#000000##FFFFFF
##4227AB1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AF
Deuteranopia (green-blind)
#003EA9
Tritanopia (blue-blind)
#004D68
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4227ab;
/* rgb */ color: rgb(66, 39, 171);
/* oklch */ color: oklch(40.3% 0.194 282.7);
Tailwind
colors: {
  custom: {
    50: '#8465c5',
    500: '#4227ab',
    950: '#000000',
  },
}
SCSS
$custom: #4227ab;
$custom-light: #8465c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4227ab",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 252.273,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40272,
    "c": 0.19449,
    "h": 282.7
  },
  "luminance": 0.0555
}

Semantic roles & 50–950 ramp

primary
#4227AB
secondary
#B2C569
accent
#E642C4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4227AB

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

Preview Lab → · Contrast checker → · Palette generator →

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