#4226AB#4226AB

#4226AB is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.195 H 282.8°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#4226AB
RGBrgb(66, 38, 171)
HSLhsl(253, 64%, 41%)
HSVhsv(253, 78%, 67%)
CMYKcmyk(61.4%, 77.8%, 0%, 32.9%)
CIE-LABlab(28.07, 48.33, -66.10)
CIE-LCHlch(28.07, 81.88, 306.17°)
OKLaboklab(40.15% 0.0432 -0.1906)
OKLCHoklch(40.15% 0.195 282.8)
XYZxyz(10.2883, 5.4840, 39.0366)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4226AB #8FAB26
analogous
#264CAB #4226AB #8426AB
triadic
#4226AB #AB4226 #26AB42
tetradic
#4226AB #AB264C #8FAB26 #26AB84
square
#4226AB #AB264C #8FAB26 #26AB84
split-complementary
#4226AB #AB8426 #4CAB26
monochromatic
#1B1047 #2F1B79 #4226AB #5B3BD3 #856DDF

Accessibility & contrast

On white

10.01
#4226AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4226AB
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4226AB#FFFFFF#000000##FFFFFF
##4226AB1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AF
Deuteranopia (green-blind)
#003EA9
Tritanopia (blue-blind)
#004D68
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4226ab;
/* rgb */ color: rgb(66, 38, 171);
/* oklch */ color: oklch(40.2% 0.195 282.8);
Tailwind
colors: {
  custom: {
    50: '#8464c5',
    500: '#4226ab',
    950: '#000000',
  },
}
SCSS
$custom: #4226ab;
$custom-light: #8464c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4226ab",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 171
  },
  "hsl": {
    "h": 252.632,
    "s": 63.636,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40151,
    "c": 0.19544,
    "h": 282.8
  },
  "luminance": 0.05485
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4226AB

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

Preview Lab → · Contrast checker → · Palette generator →

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