#4226B1#4226B1

#4226B1 is a dark, highly saturated violet. Relative luminance 0.057; OKLCH L 40.8% C 0.202 H 281.8°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#4226B1
RGBrgb(66, 38, 177)
HSLhsl(252, 65%, 42%)
HSVhsv(252, 79%, 69%)
CMYKcmyk(62.7%, 78.5%, 0%, 30.6%)
CIE-LABlab(28.69, 50.09, -68.67)
CIE-LCHlch(28.69, 85.00, 306.11°)
OKLaboklab(40.77% 0.0415 -0.1981)
OKLCHoklch(40.77% 0.202 281.8)
XYZxyz(10.8732, 5.7180, 42.1172)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4226B1 #95B126
analogous
#2650B1 #4226B1 #8726B1
triadic
#4226B1 #B14226 #26B142
tetradic
#4226B1 #B12650 #95B126 #26B187
square
#4226B1 #B12650 #95B126 #26B187
split-complementary
#4226B1 #B18726 #50B126
monochromatic
#1C104C #2F1B7F #4226B1 #5D3FD6 #8771E0

Accessibility & contrast

On white

9.80
#4226B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4226B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4226B1
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4226B1#FFFFFF#000000##FFFFFF
##4226B11.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B5
Deuteranopia (green-blind)
#003FAF
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4226b1;
/* rgb */ color: rgb(66, 38, 177);
/* oklch */ color: oklch(40.8% 0.202 281.8);
Tailwind
colors: {
  custom: {
    50: '#8565ca',
    500: '#4226b1',
    950: '#000000',
  },
}
SCSS
$custom: #4226b1;
$custom-light: #8565ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4226b1",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 177
  },
  "hsl": {
    "h": 252.086,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40767,
    "c": 0.20242,
    "h": 281.8
  },
  "luminance": 0.05719
}

Semantic roles & 50–950 ramp

primary
#4226B1
secondary
#B5C76B
accent
#E840C6
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4226B1

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

Preview Lab → · Contrast checker → · Palette generator →

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