#4227A5#4227A5

#4227A5 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.187 H 283.6°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#4227A5
RGBrgb(66, 39, 165)
HSLhsl(253, 62%, 40%)
HSVhsv(253, 76%, 65%)
CMYKcmyk(60%, 76.4%, 0%, 35.3%)
CIE-LABlab(27.64, 46.04, -63.18)
CIE-LCHlch(27.64, 78.18, 306.08°)
OKLaboklab(39.67% 0.0442 -0.1821)
OKLCHoklch(39.67% 0.187 283.6)
XYZxyz(9.7617, 5.3253, 36.1035)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4227A5 #8AA527
analogous
#274BA5 #4227A5 #8127A5
triadic
#4227A5 #A54227 #27A542
tetradic
#4227A5 #A5274B #8AA527 #27A581
square
#4227A5 #A5274B #8AA527 #27A581
split-complementary
#4227A5 #A58127 #4BA527
monochromatic
#1A1042 #2E1B74 #4227A5 #5939D0 #836ADC

Accessibility & contrast

On white

10.17
#4227A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4227A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4227A5#FFFFFF#000000##FFFFFF
##4227A51.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A9
Deuteranopia (green-blind)
#003DA3
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4227a5;
/* rgb */ color: rgb(66, 39, 165);
/* oklch */ color: oklch(39.7% 0.187 283.6);
Tailwind
colors: {
  custom: {
    50: '#8365c1',
    500: '#4227a5',
    950: '#000000',
  },
}
SCSS
$custom: #4227a5;
$custom-light: #8365c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4227a5",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 252.857,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.39668,
    "c": 0.18739,
    "h": 283.6
  },
  "luminance": 0.05326
}

Semantic roles & 50–950 ramp

primary
#4227A5
secondary
#AEC266
accent
#E543C2
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4227A5

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

Preview Lab → · Contrast checker → · Palette generator →

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