#4227A9#4227A9

#4227A9 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.192 H 283.0°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#4227A9
RGBrgb(66, 39, 169)
HSLhsl(252, 63%, 41%)
HSVhsv(252, 77%, 66%)
CMYKcmyk(60.9%, 76.9%, 0%, 33.7%)
CIE-LABlab(28.04, 47.23, -64.94)
CIE-LCHlch(28.04, 80.30, 306.03°)
OKLaboklab(40.07% 0.0432 -0.1872)
OKLCHoklch(40.07% 0.192 283)
XYZxyz(10.1315, 5.4732, 38.0510)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4227A9 #8EA927
analogous
#274DA9 #4227A9 #8327A9
triadic
#4227A9 #A94227 #27A942
tetradic
#4227A9 #A9274D #8EA927 #27A983
square
#4227A9 #A9274D #8EA927 #27A983
split-complementary
#4227A9 #A98327 #4DA927
monochromatic
#1B1046 #2F1C77 #4227A9 #5B3BD2 #846DDD

Accessibility & contrast

On white

10.02
#4227A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4227A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4227A9
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4227A9#FFFFFF#000000##FFFFFF
##4227A91.0010.022.0910.02
#FFFFFF10.021.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#003EA7
Tritanopia (blue-blind)
#004C67
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4227a9;
/* rgb */ color: rgb(66, 39, 169);
/* oklch */ color: oklch(40.1% 0.192 283.0);
Tailwind
colors: {
  custom: {
    50: '#8365c4',
    500: '#4227a9',
    950: '#000000',
  },
}
SCSS
$custom: #4227a9;
$custom-light: #8365c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4227a9",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 169
  },
  "hsl": {
    "h": 252.462,
    "s": 62.5,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4007,
    "c": 0.19214,
    "h": 283
  },
  "luminance": 0.05474
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4227A9

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

Preview Lab → · Contrast checker → · Palette generator →

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