#4226AD#4226AD

#4226AD is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.198 H 282.5°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#4226AD
RGBrgb(66, 38, 173)
HSLhsl(252, 64%, 41%)
HSVhsv(252, 78%, 68%)
CMYKcmyk(61.8%, 78%, 0%, 32.2%)
CIE-LABlab(28.28, 48.92, -66.96)
CIE-LCHlch(28.28, 82.92, 306.15°)
OKLaboklab(40.36% 0.0427 -0.1931)
OKLCHoklch(40.36% 0.198 282.5)
XYZxyz(10.4804, 5.5609, 40.0481)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4226AD #91AD26
analogous
#264EAD #4226AD #8626AD
triadic
#4226AD #AD4226 #26AD42
tetradic
#4226AD #AD264E #91AD26 #26AD86
square
#4226AD #AD264E #91AD26 #26AD86
split-complementary
#4226AD #AD8626 #4EAD26
monochromatic
#1C1049 #2F1B7B #4226AD #5C3CD4 #866EDF

Accessibility & contrast

On white

9.94
#4226AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4226AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4226AD
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4226AD#FFFFFF#000000##FFFFFF
##4226AD1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B1
Deuteranopia (green-blind)
#003EAB
Tritanopia (blue-blind)
#004E69
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4226ad;
/* rgb */ color: rgb(66, 38, 173);
/* oklch */ color: oklch(40.4% 0.198 282.5);
Tailwind
colors: {
  custom: {
    50: '#8465c7',
    500: '#4226ad',
    950: '#000000',
  },
}
SCSS
$custom: #4226ad;
$custom-light: #8465c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4226ad",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 173
  },
  "hsl": {
    "h": 252.444,
    "s": 63.981,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40355,
    "c": 0.19777,
    "h": 282.5
  },
  "luminance": 0.05562
}

Semantic roles & 50–950 ramp

primary
#4226AD
secondary
#B3C669
accent
#E741C5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4226AD

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

Preview Lab → · Contrast checker → · Palette generator →

#4226AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva