#42226A#42226A

#42226A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.120 H 300.4°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#42226A
RGBrgb(66, 34, 106)
HSLhsl(267, 51%, 27%)
HSVhsv(267, 68%, 42%)
CMYKcmyk(37.7%, 67.9%, 0%, 58.4%)
CIE-LABlab(21.37, 31.38, -36.50)
CIE-LCHlch(21.37, 48.13, 310.69°)
OKLaboklab(33.58% 0.061 -0.1038)
OKLCHoklch(33.58% 0.12 300.4)
XYZxyz(5.4197, 3.3429, 13.9926)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42226A #4A6A22
analogous
#22266A #42226A #66226A
triadic
#42226A #6A4222 #226A42
tetradic
#42226A #6A2226 #4A6A22 #226A66
square
#42226A #6A2226 #4A6A22 #226A66
split-complementary
#42226A #6A6622 #266A22
monochromatic
#0E0717 #25133C #42226A #5F3198 #7C44C3

Accessibility & contrast

On white

12.59
#42226A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#42226A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42226A
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42226A#FFFFFF#000000##FFFFFF
##42226A1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#033368
Tritanopia (blue-blind)
#393242
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #42226a;
/* rgb */ color: rgb(66, 34, 106);
/* oklch */ color: oklch(33.6% 0.120 300.4);
Tailwind
colors: {
  custom: {
    50: '#7a5f95',
    500: '#42226a',
    950: '#000000',
  },
}
SCSS
$custom: #42226a;
$custom-light: #7a5f95;
$custom-dark: #000000;
JSON
{
  "hex": "#42226a",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 266.667,
    "s": 51.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.33575,
    "c": 0.12039,
    "h": 300.4
  },
  "luminance": 0.03343
}

Semantic roles & 50–950 ramp

primary
#42226A
secondary
#799E4A
accent
#DB4D9C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09050D
muted
#7B797E

Preview Lab

Preview with #42226A

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

Preview Lab → · Contrast checker → · Palette generator →

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