#4227A2#4227A2

#4227A2 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.184 H 284.2°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#4227A2
RGBrgb(66, 39, 162)
HSLhsl(253, 61%, 39%)
HSVhsv(253, 76%, 64%)
CMYKcmyk(59.3%, 75.9%, 0%, 36.5%)
CIE-LABlab(27.35, 45.14, -61.86)
CIE-LCHlch(27.35, 76.58, 306.12°)
OKLaboklab(39.37% 0.045 -0.1782)
OKLCHoklch(39.37% 0.184 284.2)
XYZxyz(9.4919, 5.2173, 34.6823)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4227A2 #87A227
analogous
#2749A2 #4227A2 #8027A2
triadic
#4227A2 #A24227 #27A242
tetradic
#4227A2 #A22749 #87A227 #27A280
square
#4227A2 #A22749 #87A227 #27A280
split-complementary
#4227A2 #A28027 #49A227
monochromatic
#1A0F3F #2E1B71 #4227A2 #5937CF #8269DB

Accessibility & contrast

On white

10.28
#4227A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4227A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4227A2#FFFFFF#000000##FFFFFF
##4227A21.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#003DA0
Tritanopia (blue-blind)
#074A63
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4227a2;
/* rgb */ color: rgb(66, 39, 162);
/* oklch */ color: oklch(39.4% 0.184 284.2);
Tailwind
colors: {
  custom: {
    50: '#8265bf',
    500: '#4227a2',
    950: '#000000',
  },
}
SCSS
$custom: #4227a2;
$custom-light: #8265bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4227a2",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 253.171,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.3937,
    "c": 0.18381,
    "h": 284.2
  },
  "luminance": 0.05218
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4227A2

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

Preview Lab → · Contrast checker → · Palette generator →

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