#4226A4#4226A4

#4226A4 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.187 H 284.0°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#4226A4
RGBrgb(66, 38, 164)
HSLhsl(253, 62%, 40%)
HSVhsv(253, 77%, 64%)
CMYKcmyk(59.8%, 76.8%, 0%, 35.7%)
CIE-LABlab(27.36, 46.25, -63.04)
CIE-LCHlch(27.36, 78.18, 306.27°)
OKLaboklab(39.44% 0.0452 -0.1817)
OKLCHoklch(39.44% 0.187 284)
XYZxyz(9.6387, 5.2242, 35.6152)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4226A4 #88A426
analogous
#2649A4 #4226A4 #8126A4
triadic
#4226A4 #A44226 #26A442
tetradic
#4226A4 #A42649 #88A426 #26A481
square
#4226A4 #A42649 #88A426 #26A481
split-complementary
#4226A4 #A48126 #49A426
monochromatic
#1A0F41 #2E1A72 #4226A4 #5937D1 #8268DC

Accessibility & contrast

On white

10.27
#4226A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4226A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4226A4
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4226A4#FFFFFF#000000##FFFFFF
##4226A41.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A8
Deuteranopia (green-blind)
#003CA2
Tritanopia (blue-blind)
#024A64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4226a4;
/* rgb */ color: rgb(66, 38, 164);
/* oklch */ color: oklch(39.4% 0.187 284.0);
Tailwind
colors: {
  custom: {
    50: '#8264c0',
    500: '#4226a4',
    950: '#000000',
  },
}
SCSS
$custom: #4226a4;
$custom-light: #8264c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4226a4",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 164
  },
  "hsl": {
    "h": 253.333,
    "s": 62.376,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39443,
    "c": 0.18719,
    "h": 284
  },
  "luminance": 0.05225
}

Semantic roles & 50–950 ramp

primary
#4226A4
secondary
#ADC264
accent
#E542C1
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4226A4

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

Preview Lab → · Contrast checker → · Palette generator →

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