#4227AA#4227AA

#4227AA is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.193 H 282.8°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#4227AA
RGBrgb(66, 39, 170)
HSLhsl(252, 63%, 41%)
HSVhsv(252, 77%, 67%)
CMYKcmyk(61.2%, 77.1%, 0%, 33.3%)
CIE-LABlab(28.14, 47.53, -65.37)
CIE-LCHlch(28.14, 80.83, 306.02°)
OKLaboklab(40.17% 0.0429 -0.1885)
OKLCHoklch(40.17% 0.193 282.8)
XYZxyz(10.2257, 5.5109, 38.5473)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4227AA #8FAA27
analogous
#274EAA #4227AA #8327AA
triadic
#4227AA #AA4227 #27AA42
tetradic
#4227AA #AA274E #8FAA27 #27AA83
square
#4227AA #AA274E #8FAA27 #27AA83
split-complementary
#4227AA #AA8327 #4EAA27
monochromatic
#1B1046 #2F1C78 #4227AA #5B3CD2 #856EDE

Accessibility & contrast

On white

9.99
#4227AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4227AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4227AA#FFFFFF#000000##FFFFFF
##4227AA1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AE
Deuteranopia (green-blind)
#003EA8
Tritanopia (blue-blind)
#004D67
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4227aa;
/* rgb */ color: rgb(66, 39, 170);
/* oklch */ color: oklch(40.2% 0.193 282.8);
Tailwind
colors: {
  custom: {
    50: '#8365c4',
    500: '#4227aa',
    950: '#000000',
  },
}
SCSS
$custom: #4227aa;
$custom-light: #8365c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4227aa",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 252.366,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40171,
    "c": 0.19332,
    "h": 282.8
  },
  "luminance": 0.05512
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4227AA

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

Preview Lab → · Contrast checker → · Palette generator →

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