#42197F#42197F

#42197F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.157 H 294.8°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#42197F
RGBrgb(66, 25, 127)
HSLhsl(264, 67%, 30%)
HSVhsv(264, 80%, 50%)
CMYKcmyk(48%, 80.3%, 0%, 50.2%)
CIE-LABlab(21.53, 41.92, -49.72)
CIE-LCHlch(21.53, 65.03, 310.13°)
OKLaboklab(34.26% 0.066 -0.1426)
OKLCHoklch(34.26% 0.157 294.8)
XYZxyz(6.4241, 3.3856, 20.3896)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42197F #567F19
analogous
#19237F #42197F #75197F
triadic
#42197F #7F4219 #197F42
tetradic
#42197F #7F1923 #567F19 #197F75
square
#42197F #7F1923 #567F19 #197F75
split-complementary
#42197F #7F7519 #237F19
monochromatic
#0D051A #270F4C #42197F #5D23B2 #7A3AD8

Accessibility & contrast

On white

12.52
#42197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#42197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42197F
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42197F#FFFFFF#000000##FFFFFF
##42197F1.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)
#003482
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#30354C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #42197f;
/* rgb */ color: rgb(66, 25, 127);
/* oklch */ color: oklch(34.3% 0.157 294.8);
Tailwind
colors: {
  custom: {
    50: '#7d5ba5',
    500: '#42197f',
    950: '#000000',
  },
}
SCSS
$custom: #42197f;
$custom-light: #7d5ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#42197f",
  "rgb": {
    "r": 66,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 264.118,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34255,
    "c": 0.1571,
    "h": 294.8
  },
  "luminance": 0.03386
}

Semantic roles & 50–950 ramp

primary
#42197F
secondary
#85B341
accent
#EA3EA5
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #42197F

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

Preview Lab → · Contrast checker → · Palette generator →

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