#42199F#42199F

#42199F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.193 H 286.5°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#42199F
RGBrgb(66, 25, 159)
HSLhsl(258, 73%, 36%)
HSVhsv(258, 84%, 62%)
CMYKcmyk(58.5%, 84.3%, 0%, 37.6%)
CIE-LABlab(24.82, 50.70, -64.20)
CIE-LCHlch(24.82, 81.80, 308.30°)
OKLaboklab(37.52% 0.0549 -0.1849)
OKLCHoklch(37.52% 0.193 286.5)
XYZxyz(8.8505, 4.3562, 33.1686)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42199F #769F19
analogous
#19339F #42199F #85199F
triadic
#42199F #9F4219 #199F42
tetradic
#42199F #9F1933 #769F19 #199F85
square
#42199F #9F1933 #769F19 #199F85
split-complementary
#42199F #9F8519 #339F19
monochromatic
#160835 #2C116A #42199F #5821D4 #7C4FE3

Accessibility & contrast

On white

11.22
#42199F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#42199F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42199F
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42199F#FFFFFF#000000##FFFFFF
##42199F1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00379D
Tritanopia (blue-blind)
#11435E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #42199f;
/* rgb */ color: rgb(66, 25, 159);
/* oklch */ color: oklch(37.5% 0.193 286.5);
Tailwind
colors: {
  custom: {
    50: '#825dbd',
    500: '#42199f',
    950: '#000000',
  },
}
SCSS
$custom: #42199f;
$custom-light: #825dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#42199f",
  "rgb": {
    "r": 66,
    "g": 25,
    "b": 159
  },
  "hsl": {
    "h": 258.358,
    "s": 72.826,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37519,
    "c": 0.19287,
    "h": 286.5
  },
  "luminance": 0.04357
}

Semantic roles & 50–950 ramp

primary
#42199F
secondary
#A1C64E
accent
#F038B7
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #42199F

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

Preview Lab → · Contrast checker → · Palette generator →

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