#42135D#42135D

#42135D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.126 H 309.8°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#42135D
RGBrgb(66, 19, 93)
HSLhsl(278, 66%, 22%)
HSVhsv(278, 80%, 36%)
CMYKcmyk(29%, 79.6%, 0%, 63.5%)
CIE-LABlab(17.53, 35.76, -34.16)
CIE-LCHlch(17.53, 49.45, 316.32°)
OKLaboklab(30.5% 0.0807 -0.0968)
OKLCHoklch(30.5% 0.126 309.8)
XYZxyz(4.4550, 2.4144, 10.5851)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42135D #2E5D13
analogous
#1D135D #42135D #5D1353
triadic
#42135D #5D4213 #135D42
tetradic
#42135D #5D1D13 #2E5D13 #13535D
square
#42135D #5D1D13 #2E5D13 #13535D
split-complementary
#42135D #535D13 #135D1D
monochromatic
#120519 #1E092A #42135D #661D90 #8A28C3

Accessibility & contrast

On white

14.16
#42135D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#42135D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42135D
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42135D#FFFFFF#000000##FFFFFF
##42135D1.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295F
Deuteranopia (green-blind)
#022C5B
Tritanopia (blue-blind)
#3E2437
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #42135d;
/* rgb */ color: rgb(66, 19, 93);
/* oklch */ color: oklch(30.5% 0.126 309.8);
Tailwind
colors: {
  custom: {
    50: '#7a568b',
    500: '#42135d',
    950: '#000000',
  },
}
SCSS
$custom: #42135d;
$custom-light: #7a568b;
$custom-dark: #000000;
JSON
{
  "hex": "#42135d",
  "rgb": {
    "r": 66,
    "g": 19,
    "b": 93
  },
  "hsl": {
    "h": 278.108,
    "s": 66.071,
    "l": 21.961
  },
  "oklch": {
    "l": 0.30502,
    "c": 0.12601,
    "h": 309.8
  },
  "luminance": 0.02414
}

Semantic roles & 50–950 ramp

primary
#42135D
secondary
#599537
accent
#E93F7D
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #42135D

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

Preview Lab → · Contrast checker → · Palette generator →

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