#4222B2#4222B2

#4222B2 is a dark, highly saturated violet. Relative luminance 0.055; OKLCH L 40.4% C 0.207 H 282.1°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#4222B2
RGBrgb(66, 34, 178)
HSLhsl(253, 68%, 42%)
HSVhsv(253, 81%, 70%)
CMYKcmyk(62.9%, 80.9%, 0%, 30.2%)
CIE-LABlab(28.16, 52.24, -70.15)
CIE-LCHlch(28.16, 87.46, 306.67°)
OKLaboklab(40.43% 0.0435 -0.2024)
OKLCHoklch(40.43% 0.207 282.1)
XYZxyz(10.8522, 5.5159, 42.6036)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4222B2 #92B222
analogous
#224AB2 #4222B2 #8A22B2
triadic
#4222B2 #B24222 #22B242
tetradic
#4222B2 #B2224A #92B222 #22B28A
square
#4222B2 #B2224A #92B222 #22B28A
split-complementary
#4222B2 #B28A22 #4AB222
monochromatic
#1C0E4B #2F187F #4222B2 #5C38D9 #866CE3

Accessibility & contrast

On white

9.98
#4222B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4222B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4222B2
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4222B2#FFFFFF#000000##FFFFFF
##4222B21.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B6
Deuteranopia (green-blind)
#003DAF
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4222b2;
/* rgb */ color: rgb(66, 34, 178);
/* oklch */ color: oklch(40.4% 0.207 282.1);
Tailwind
colors: {
  custom: {
    50: '#8563ca',
    500: '#4222b2',
    950: '#000000',
  },
}
SCSS
$custom: #4222b2;
$custom-light: #8563ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4222b2",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 178
  },
  "hsl": {
    "h": 253.333,
    "s": 67.925,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40428,
    "c": 0.20699,
    "h": 282.1
  },
  "luminance": 0.05517
}

Semantic roles & 50–950 ramp

primary
#4222B2
secondary
#B3C967
accent
#EB3DC4
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4222B2

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

Preview Lab → · Contrast checker → · Palette generator →

#4222B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva