#4226C2#4226C2

#4226C2 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.6% C 0.222 H 279.5°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#4226C2
RGBrgb(66, 38, 194)
HSLhsl(251, 67%, 45%)
HSVhsv(251, 80%, 76%)
CMYKcmyk(66%, 80.4%, 0%, 23.9%)
CIE-LABlab(30.49, 55.05, -75.77)
CIE-LCHlch(30.49, 93.66, 306.00°)
OKLaboklab(42.55% 0.0366 -0.2188)
OKLCHoklch(42.55% 0.222 279.5)
XYZxyz(12.6744, 6.4385, 51.6033)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4226C2 #A6C226
analogous
#2658C2 #4226C2 #9026C2
triadic
#4226C2 #C24226 #26C242
tetradic
#4226C2 #C22658 #A6C226 #26C290
square
#4226C2 #C22658 #A6C226 #26C290
split-complementary
#4226C2 #C29026 #58C226
monochromatic
#1F125C #311C8F #4226C2 #644ADB #907DE6

Accessibility & contrast

On white

9.18
#4226C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4226C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4226C2
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4226C2#FFFFFF#000000##FFFFFF
##4226C21.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC6
Deuteranopia (green-blind)
#0042BF
Tritanopia (blue-blind)
#005675
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4226c2;
/* rgb */ color: rgb(66, 38, 194);
/* oklch */ color: oklch(42.6% 0.222 279.5);
Tailwind
colors: {
  custom: {
    50: '#8866d6',
    500: '#4226c2',
    950: '#000000',
  },
}
SCSS
$custom: #4226c2;
$custom-light: #8866d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4226c2",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 194
  },
  "hsl": {
    "h": 250.769,
    "s": 67.241,
    "l": 45.49
  },
  "oklch": {
    "l": 0.42553,
    "c": 0.22182,
    "h": 279.5
  },
  "luminance": 0.0644
}

Semantic roles & 50–950 ramp

primary
#4226C2
secondary
#BECE76
accent
#EA3ECB
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4226C2

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

Preview Lab → · Contrast checker → · Palette generator →

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