#4226AC#4226AC

#4226AC is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.197 H 282.6°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#4226AC
RGBrgb(66, 38, 172)
HSLhsl(253, 64%, 41%)
HSVhsv(253, 78%, 67%)
CMYKcmyk(61.6%, 77.9%, 0%, 32.5%)
CIE-LABlab(28.17, 48.62, -66.53)
CIE-LCHlch(28.17, 82.40, 306.16°)
OKLaboklab(40.25% 0.043 -0.1918)
OKLCHoklch(40.25% 0.197 282.6)
XYZxyz(10.3840, 5.5223, 39.5404)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4226AC #90AC26
analogous
#264DAC #4226AC #8526AC
triadic
#4226AC #AC4226 #26AC42
tetradic
#4226AC #AC264D #90AC26 #26AC85
square
#4226AC #AC264D #90AC26 #26AC85
split-complementary
#4226AC #AC8526 #4DAC26
monochromatic
#1C1048 #2F1B7A #4226AC #5B3BD4 #856EDF

Accessibility & contrast

On white

9.98
#4226AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4226AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4226AC
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4226AC#FFFFFF#000000##FFFFFF
##4226AC1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B0
Deuteranopia (green-blind)
#003EAA
Tritanopia (blue-blind)
#004D68
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4226ac;
/* rgb */ color: rgb(66, 38, 172);
/* oklch */ color: oklch(40.3% 0.197 282.6);
Tailwind
colors: {
  custom: {
    50: '#8465c6',
    500: '#4226ac',
    950: '#000000',
  },
}
SCSS
$custom: #4226ac;
$custom-light: #8465c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4226ac",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 172
  },
  "hsl": {
    "h": 252.537,
    "s": 63.81,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40253,
    "c": 0.1966,
    "h": 282.6
  },
  "luminance": 0.05523
}

Semantic roles & 50–950 ramp

primary
#4226AC
secondary
#B2C568
accent
#E741C4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4226AC

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

Preview Lab → · Contrast checker → · Palette generator →

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