#42206C#42206C

#42206C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.4% C 0.126 H 300.2°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#42206C
RGBrgb(66, 32, 108)
HSLhsl(267, 54%, 27%)
HSVhsv(267, 70%, 42%)
CMYKcmyk(38.9%, 70.4%, 0%, 57.6%)
CIE-LABlab(21.11, 33.08, -38.22)
CIE-LCHlch(21.11, 50.55, 310.88°)
OKLaboklab(33.44% 0.0632 -0.1088)
OKLCHoklch(33.44% 0.126 300.2)
XYZxyz(5.4694, 3.2739, 14.5282)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42206C #4A6C20
analogous
#20246C #42206C #68206C
triadic
#42206C #6C4220 #206C42
tetradic
#42206C #6C2024 #4A6C20 #206C68
square
#42206C #6C2024 #4A6C20 #206C68
split-complementary
#42206C #6C6820 #246C20
monochromatic
#0E0718 #25123D #42206C #5F2E9B #7C40C6

Accessibility & contrast

On white

12.69
#42206C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#42206C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42206C
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42206C#FFFFFF#000000##FFFFFF
##42206C1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#00326A
Tritanopia (blue-blind)
#393243
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #42206c;
/* rgb */ color: rgb(66, 32, 108);
/* oklch */ color: oklch(33.4% 0.126 300.2);
Tailwind
colors: {
  custom: {
    50: '#7a5e97',
    500: '#42206c',
    950: '#000000',
  },
}
SCSS
$custom: #42206c;
$custom-light: #7a5e97;
$custom-dark: #000000;
JSON
{
  "hex": "#42206c",
  "rgb": {
    "r": 66,
    "g": 32,
    "b": 108
  },
  "hsl": {
    "h": 266.842,
    "s": 54.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.33439,
    "c": 0.12587,
    "h": 300.2
  },
  "luminance": 0.03274
}

Semantic roles & 50–950 ramp

primary
#42206C
secondary
#79A048
accent
#DE4A9C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040D
muted
#7C797E

Preview Lab

Preview with #42206C

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

Preview Lab → · Contrast checker → · Palette generator →

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