#4226B7#4226B7

#4226B7 is a dark, highly saturated violet. Relative luminance 0.060; OKLCH L 41.4% C 0.209 H 281.0°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#4226B7
RGBrgb(66, 38, 183)
HSLhsl(252, 66%, 43%)
HSVhsv(252, 79%, 72%)
CMYKcmyk(63.9%, 79.2%, 0%, 28.2%)
CIE-LABlab(29.32, 51.85, -71.21)
CIE-LCHlch(29.32, 88.09, 306.06°)
OKLaboklab(41.39% 0.0398 -0.2055)
OKLCHoklch(41.39% 0.209 281)
XYZxyz(11.4844, 5.9625, 45.3362)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4226B7 #9BB726
analogous
#2652B7 #4226B7 #8A26B7
triadic
#4226B7 #B74226 #26B742
tetradic
#4226B7 #B72652 #9BB726 #26B78A
square
#4226B7 #B72652 #9BB726 #26B78A
split-complementary
#4226B7 #B78A26 #52B726
monochromatic
#1D1152 #301B84 #4226B7 #5F42D8 #8A75E2

Accessibility & contrast

On white

9.58
#4226B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4226B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4226B7
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4226B7#FFFFFF#000000##FFFFFF
##4226B71.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ABB
Deuteranopia (green-blind)
#0040B4
Tritanopia (blue-blind)
#00526F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4226b7;
/* rgb */ color: rgb(66, 38, 183);
/* oklch */ color: oklch(41.4% 0.209 281.0);
Tailwind
colors: {
  custom: {
    50: '#8665ce',
    500: '#4226b7',
    950: '#000000',
  },
}
SCSS
$custom: #4226b7;
$custom-light: #8665ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4226b7",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 183
  },
  "hsl": {
    "h": 251.586,
    "s": 65.611,
    "l": 43.333
  },
  "oklch": {
    "l": 0.41391,
    "c": 0.20933,
    "h": 281
  },
  "luminance": 0.05963
}

Semantic roles & 50–950 ramp

primary
#4226B7
secondary
#B8CA6F
accent
#E93FC8
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0D0614
muted
#7D7A82

Preview Lab

Preview with #4226B7

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

Preview Lab → · Contrast checker → · Palette generator →

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