#4226AF#4226AF

#4226AF is a dark, highly saturated violet. Relative luminance 0.056; OKLCH L 40.6% C 0.200 H 282.2°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#4226AF
RGBrgb(66, 38, 175)
HSLhsl(252, 64%, 42%)
HSVhsv(252, 78%, 69%)
CMYKcmyk(62.3%, 78.3%, 0%, 31.4%)
CIE-LABlab(28.48, 49.51, -67.82)
CIE-LCHlch(28.48, 83.96, 306.13°)
OKLaboklab(40.56% 0.0421 -0.1956)
OKLCHoklch(40.56% 0.2 282.2)
XYZxyz(10.6753, 5.6389, 41.0750)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4226AF #93AF26
analogous
#264FAF #4226AF #8726AF
triadic
#4226AF #AF4226 #26AF42
tetradic
#4226AF #AF264F #93AF26 #26AF87
square
#4226AF #AF264F #93AF26 #26AF87
split-complementary
#4226AF #AF8726 #4FAF26
monochromatic
#1C104A #2F1B7D #4226AF #5C3DD5 #8770E0

Accessibility & contrast

On white

9.87
#4226AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4226AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4226AF
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4226AF#FFFFFF#000000##FFFFFF
##4226AF1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B3
Deuteranopia (green-blind)
#003EAD
Tritanopia (blue-blind)
#004E6A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4226af;
/* rgb */ color: rgb(66, 38, 175);
/* oklch */ color: oklch(40.6% 0.200 282.2);
Tailwind
colors: {
  custom: {
    50: '#8465c8',
    500: '#4226af',
    950: '#000000',
  },
}
SCSS
$custom: #4226af;
$custom-light: #8465c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4226af",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 175
  },
  "hsl": {
    "h": 252.263,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4056,
    "c": 0.2001,
    "h": 282.2
  },
  "luminance": 0.0564
}

Semantic roles & 50–950 ramp

primary
#4226AF
secondary
#B4C76A
accent
#E740C5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4226AF

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

Preview Lab → · Contrast checker → · Palette generator →

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