#42226C#42226C

#42226C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.7% C 0.123 H 299.6°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#42226C
RGBrgb(66, 34, 108)
HSLhsl(266, 52%, 28%)
HSVhsv(266, 69%, 42%)
CMYKcmyk(38.9%, 68.5%, 0%, 57.6%)
CIE-LABlab(21.52, 31.94, -37.55)
CIE-LCHlch(21.52, 49.30, 310.39°)
OKLaboklab(33.74% 0.0608 -0.1069)
OKLCHoklch(33.74% 0.123 299.6)
XYZxyz(5.5249, 3.3850, 14.5467)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42226C #4C6C22
analogous
#22276C #42226C #67226C
triadic
#42226C #6C4222 #226C42
tetradic
#42226C #6C2227 #4C6C22 #226C67
square
#42226C #6C2227 #4C6C22 #226C67
split-complementary
#42226C #6C6722 #276C22
monochromatic
#0E0717 #26133D #42226C #5E319B #7C44C4

Accessibility & contrast

On white

12.52
#42226C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#42226C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42226C
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42226C#FFFFFF#000000##FFFFFF
##42226C1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336E
Deuteranopia (green-blind)
#00336A
Tritanopia (blue-blind)
#393343
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #42226c;
/* rgb */ color: rgb(66, 34, 108);
/* oklch */ color: oklch(33.7% 0.123 299.6);
Tailwind
colors: {
  custom: {
    50: '#7a5f97',
    500: '#42226c',
    950: '#000000',
  },
}
SCSS
$custom: #42226c;
$custom-light: #7a5f97;
$custom-dark: #000000;
JSON
{
  "hex": "#42226c",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 108
  },
  "hsl": {
    "h": 265.946,
    "s": 52.113,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33737,
    "c": 0.12295,
    "h": 299.6
  },
  "luminance": 0.03385
}

Semantic roles & 50–950 ramp

primary
#42226C
secondary
#7BA04A
accent
#DC4C9E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09050D
muted
#7B797E

Preview Lab

Preview with #42226C

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

Preview Lab → · Contrast checker → · Palette generator →

#42226C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva