#4227A3#4227A3

#4227A3 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.185 H 284.0°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#4227A3
RGBrgb(66, 39, 163)
HSLhsl(253, 61%, 40%)
HSVhsv(253, 76%, 64%)
CMYKcmyk(59.5%, 76.1%, 0%, 36.1%)
CIE-LABlab(27.44, 45.44, -62.30)
CIE-LCHlch(27.44, 77.11, 306.11°)
OKLaboklab(39.47% 0.0447 -0.1795)
OKLCHoklch(39.47% 0.185 284)
XYZxyz(9.5811, 5.2530, 35.1523)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4227A3 #88A327
analogous
#274AA3 #4227A3 #8027A3
triadic
#4227A3 #A34227 #27A342
tetradic
#4227A3 #A3274A #88A327 #27A380
square
#4227A3 #A3274A #88A327 #27A380
split-complementary
#4227A3 #A38027 #4AA327
monochromatic
#1A0F40 #2E1B72 #4227A3 #5938CF #8269DB

Accessibility & contrast

On white

10.24
#4227A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4227A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4227A3#FFFFFF#000000##FFFFFF
##4227A31.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A7
Deuteranopia (green-blind)
#003DA1
Tritanopia (blue-blind)
#054A63
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4227a3;
/* rgb */ color: rgb(66, 39, 163);
/* oklch */ color: oklch(39.5% 0.185 284.0);
Tailwind
colors: {
  custom: {
    50: '#8265bf',
    500: '#4227a3',
    950: '#000000',
  },
}
SCSS
$custom: #4227a3;
$custom-light: #8265bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4227a3",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 253.065,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39469,
    "c": 0.18501,
    "h": 284
  },
  "luminance": 0.05254
}

Semantic roles & 50–950 ramp

primary
#4227A3
secondary
#ADC164
accent
#E443C1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4227A3

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

Preview Lab → · Contrast checker → · Palette generator →

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