#4228AC#4228AC

#4228AC is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.195 H 282.4°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#4228AC
RGBrgb(66, 40, 172)
HSLhsl(252, 62%, 42%)
HSVhsv(252, 77%, 67%)
CMYKcmyk(61.6%, 76.7%, 0%, 32.5%)
CIE-LABlab(28.52, 47.63, -65.95)
CIE-LCHlch(28.52, 81.35, 305.83°)
OKLaboklab(40.5% 0.0417 -0.1902)
OKLCHoklch(40.5% 0.195 282.4)
XYZxyz(10.4496, 5.6537, 39.5623)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4228AC #92AC28
analogous
#2850AC #4228AC #8428AC
triadic
#4228AC #AC4228 #28AC42
tetradic
#4228AC #AC2850 #92AC28 #28AC84
square
#4228AC #AC2850 #92AC28 #28AC84
split-complementary
#4228AC #AC8428 #50AC28
monochromatic
#1C1149 #2F1C7A #4228AC #5C3FD2 #8671DE

Accessibility & contrast

On white

9.86
#4228AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4228AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4228AC
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4228AC#FFFFFF#000000##FFFFFF
##4228AC1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4228ac;
/* rgb */ color: rgb(66, 40, 172);
/* oklch */ color: oklch(40.5% 0.195 282.4);
Tailwind
colors: {
  custom: {
    50: '#8466c6',
    500: '#4228ac',
    950: '#000000',
  },
}
SCSS
$custom: #4228ac;
$custom-light: #8466c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4228ac",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 251.818,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40496,
    "c": 0.19472,
    "h": 282.4
  },
  "luminance": 0.05654
}

Semantic roles & 50–950 ramp

primary
#4228AC
secondary
#B3C56B
accent
#E542C5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4228AC

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

Preview Lab → · Contrast checker → · Palette generator →

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