#4226A5#4226A5

#4226A5 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.188 H 283.8°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#4226A5
RGBrgb(66, 38, 165)
HSLhsl(253, 63%, 40%)
HSVhsv(253, 77%, 65%)
CMYKcmyk(60%, 77%, 0%, 35.3%)
CIE-LABlab(27.46, 46.55, -63.48)
CIE-LCHlch(27.46, 78.71, 306.25°)
OKLaboklab(39.54% 0.0449 -0.1829)
OKLCHoklch(39.54% 0.188 283.8)
XYZxyz(9.7293, 5.2605, 36.0927)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4226A5 #89A526
analogous
#264AA5 #4226A5 #8126A5
triadic
#4226A5 #A54226 #26A542
tetradic
#4226A5 #A5264A #89A526 #26A581
square
#4226A5 #A5264A #89A526 #26A581
split-complementary
#4226A5 #A58126 #4AA526
monochromatic
#1A0F42 #2E1B73 #4226A5 #5937D1 #8269DC

Accessibility & contrast

On white

10.23
#4226A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4226A5
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4226A5#FFFFFF#000000##FFFFFF
##4226A51.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A9
Deuteranopia (green-blind)
#003DA3
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4226a5;
/* rgb */ color: rgb(66, 38, 165);
/* oklch */ color: oklch(39.5% 0.188 283.8);
Tailwind
colors: {
  custom: {
    50: '#8364c1',
    500: '#4226a5',
    950: '#000000',
  },
}
SCSS
$custom: #4226a5;
$custom-light: #8364c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4226a5",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 165
  },
  "hsl": {
    "h": 253.228,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39544,
    "c": 0.18838,
    "h": 283.8
  },
  "luminance": 0.05261
}

Semantic roles & 50–950 ramp

primary
#4226A5
secondary
#AEC364
accent
#E642C2
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4226A5

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

Preview Lab → · Contrast checker → · Palette generator →

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