#42206F#42206F

#42206F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.130 H 299.0°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#42206F
RGBrgb(66, 32, 111)
HSLhsl(266, 55%, 28%)
HSVhsv(266, 71%, 44%)
CMYKcmyk(40.5%, 71.2%, 0%, 56.5%)
CIE-LABlab(21.35, 33.92, -39.77)
CIE-LCHlch(21.35, 52.27, 310.47°)
OKLaboklab(33.69% 0.0628 -0.1134)
OKLCHoklch(33.69% 0.13 299)
XYZxyz(5.6318, 3.3389, 15.3836)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42206F #4D6F20
analogous
#20256F #42206F #69206F
triadic
#42206F #6F4220 #206F42
tetradic
#42206F #6F2025 #4D6F20 #206F69
square
#42206F #6F2025 #4D6F20 #206F69
split-complementary
#42206F #6F6920 #256F20
monochromatic
#0E0718 #26123F #42206F #5E2E9F #7B41C8

Accessibility & contrast

On white

12.59
#42206F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#42206F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42206F
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42206F#FFFFFF#000000##FFFFFF
##42206F1.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)
#003371
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#383344
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #42206f;
/* rgb */ color: rgb(66, 32, 111);
/* oklch */ color: oklch(33.7% 0.130 299.0);
Tailwind
colors: {
  custom: {
    50: '#7b5e99',
    500: '#42206f',
    950: '#000000',
  },
}
SCSS
$custom: #42206f;
$custom-light: #7b5e99;
$custom-dark: #000000;
JSON
{
  "hex": "#42206f",
  "rgb": {
    "r": 66,
    "g": 32,
    "b": 111
  },
  "hsl": {
    "h": 265.823,
    "s": 55.245,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3369,
    "c": 0.12961,
    "h": 299
  },
  "luminance": 0.03339
}

Semantic roles & 50–950 ramp

primary
#42206F
secondary
#7CA348
accent
#DF499E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #42206F

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

Preview Lab → · Contrast checker → · Palette generator →

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