#42198D#42198D

#42198D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.173 H 290.8°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#42198D
RGBrgb(66, 25, 141)
HSLhsl(261, 70%, 33%)
HSVhsv(261, 82%, 55%)
CMYKcmyk(53.2%, 82.3%, 0%, 44.7%)
CIE-LABlab(22.92, 45.76, -56.23)
CIE-LCHlch(22.92, 72.50, 309.14°)
OKLaboklab(35.64% 0.0613 -0.1616)
OKLCHoklch(35.64% 0.173 290.8)
XYZxyz(7.4007, 3.7763, 25.5331)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42198D #648D19
analogous
#192A8D #42198D #7C198D
triadic
#42198D #8D4219 #198D42
tetradic
#42198D #8D192A #648D19 #198D7C
square
#42198D #8D192A #648D19 #198D7C
split-complementary
#42198D #8D7C19 #2A8D19
monochromatic
#110725 #2A1059 #42198D #5A22C1 #7A43DE

Accessibility & contrast

On white

11.96
#42198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#42198D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42198D
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42198D#FFFFFF#000000##FFFFFF
##42198D1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#273B54
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #42198d;
/* rgb */ color: rgb(66, 25, 141);
/* oklch */ color: oklch(35.6% 0.173 290.8);
Tailwind
colors: {
  custom: {
    50: '#7f5caf',
    500: '#42198d',
    950: '#000000',
  },
}
SCSS
$custom: #42198d;
$custom-light: #7f5caf;
$custom-dark: #000000;
JSON
{
  "hex": "#42198d",
  "rgb": {
    "r": 66,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 261.207,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35644,
    "c": 0.1729,
    "h": 290.8
  },
  "luminance": 0.03777
}

Semantic roles & 50–950 ramp

primary
#42198D
secondary
#93BF43
accent
#ED3BAE
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #42198D

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

Preview Lab → · Contrast checker → · Palette generator →

#42198D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva