#4227B0#4227B0

#4227B0 is a dark, highly saturated violet. Relative luminance 0.057; OKLCH L 40.8% C 0.200 H 281.9°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#4227B0
RGBrgb(66, 39, 176)
HSLhsl(252, 64%, 42%)
HSVhsv(252, 78%, 69%)
CMYKcmyk(62.5%, 77.8%, 0%, 31%)
CIE-LABlab(28.75, 49.31, -67.97)
CIE-LCHlch(28.75, 83.97, 305.96°)
OKLaboklab(40.78% 0.0412 -0.1961)
OKLCHoklch(40.78% 0.2 281.9)
XYZxyz(10.8063, 5.7431, 41.6050)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4227B0 #95B027
analogous
#2750B0 #4227B0 #8727B0
triadic
#4227B0 #B04227 #27B042
tetradic
#4227B0 #B02750 #95B027 #27B087
square
#4227B0 #B02750 #95B027 #27B087
split-complementary
#4227B0 #B08727 #50B027
monochromatic
#1C114C #2F1C7E #4227B0 #5D40D5 #8772E0

Accessibility & contrast

On white

9.77
#4227B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4227B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4227B0
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4227B0#FFFFFF#000000##FFFFFF
##4227B01.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B4
Deuteranopia (green-blind)
#003FAE
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4227b0;
/* rgb */ color: rgb(66, 39, 176);
/* oklch */ color: oklch(40.8% 0.200 281.9);
Tailwind
colors: {
  custom: {
    50: '#8565c9',
    500: '#4227b0',
    950: '#000000',
  },
}
SCSS
$custom: #4227b0;
$custom-light: #8565c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4227b0",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 176
  },
  "hsl": {
    "h": 251.825,
    "s": 63.721,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40781,
    "c": 0.20035,
    "h": 281.9
  },
  "luminance": 0.05744
}

Semantic roles & 50–950 ramp

primary
#4227B0
secondary
#B5C76C
accent
#E741C6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4227B0

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

Preview Lab → · Contrast checker → · Palette generator →

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