#4228A2#4228A2

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

Color values

HEX#4228A2
RGBrgb(66, 40, 162)
HSLhsl(253, 60%, 40%)
HSVhsv(253, 75%, 64%)
CMYKcmyk(59.3%, 75.3%, 0%, 36.5%)
CIE-LABlab(27.53, 44.62, -61.55)
CIE-LCHlch(27.53, 76.03, 305.94°)
OKLaboklab(39.5% 0.0443 -0.1773)
OKLCHoklch(39.5% 0.183 284)
XYZxyz(9.5251, 5.2839, 34.6934)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4228A2 #88A228
analogous
#284BA2 #4228A2 #7F28A2
triadic
#4228A2 #A24228 #28A242
tetradic
#4228A2 #A2284B #88A228 #28A27F
square
#4228A2 #A2284B #88A228 #28A27F
split-complementary
#4228A2 #A27F28 #4BA228
monochromatic
#1A1040 #2E1C71 #4228A2 #5939CE #826ADA

Accessibility & contrast

On white

10.21
#4228A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4228A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4228A2
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4228A2#FFFFFF#000000##FFFFFF
##4228A21.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4228a2;
/* rgb */ color: rgb(66, 40, 162);
/* oklch */ color: oklch(39.5% 0.183 284.0);
Tailwind
colors: {
  custom: {
    50: '#8265bf',
    500: '#4228a2',
    950: '#000000',
  },
}
SCSS
$custom: #4228a2;
$custom-light: #8265bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4228a2",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 252.787,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39499,
    "c": 0.18278,
    "h": 284
  },
  "luminance": 0.05284
}

Semantic roles & 50–950 ramp

primary
#4228A2
secondary
#ADC165
accent
#E444C2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4228A2

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

Preview Lab → · Contrast checker → · Palette generator →

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