#4226A2#4226A2

#4226A2 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.185 H 284.3°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#4226A2
RGBrgb(66, 38, 162)
HSLhsl(254, 62%, 39%)
HSVhsv(254, 77%, 64%)
CMYKcmyk(59.3%, 76.5%, 0%, 36.5%)
CIE-LABlab(27.16, 45.66, -62.15)
CIE-LCHlch(27.16, 77.12, 306.30°)
OKLaboklab(39.24% 0.0457 -0.1791)
OKLCHoklch(39.24% 0.185 284.3)
XYZxyz(9.4595, 5.1525, 34.6715)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4226A2 #86A226
analogous
#2648A2 #4226A2 #8026A2
triadic
#4226A2 #A24226 #26A242
tetradic
#4226A2 #A22648 #86A226 #26A280
square
#4226A2 #A22648 #86A226 #26A280
split-complementary
#4226A2 #A28026 #48A226
monochromatic
#1A0F3F #2E1A70 #4226A2 #5835D0 #8167DB

Accessibility & contrast

On white

10.34
#4226A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4226A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4226A2
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4226A2#FFFFFF#000000##FFFFFF
##4226A21.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#003CA0
Tritanopia (blue-blind)
#084963
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4226a2;
/* rgb */ color: rgb(66, 38, 162);
/* oklch */ color: oklch(39.2% 0.185 284.3);
Tailwind
colors: {
  custom: {
    50: '#8264bf',
    500: '#4226a2',
    950: '#000000',
  },
}
SCSS
$custom: #4226a2;
$custom-light: #8264bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4226a2",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 253.548,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39243,
    "c": 0.18482,
    "h": 284.3
  },
  "luminance": 0.05153
}

Semantic roles & 50–950 ramp

primary
#4226A2
secondary
#ACC163
accent
#E543C0
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4226A2

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

Preview Lab → · Contrast checker → · Palette generator →

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