#42115D#42115D

#42115D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.128 H 310.1°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#42115D
RGBrgb(66, 17, 93)
HSLhsl(279, 69%, 22%)
HSVhsv(279, 82%, 36%)
CMYKcmyk(29%, 81.7%, 0%, 63.5%)
CIE-LABlab(17.22, 36.63, -34.65)
CIE-LCHlch(17.22, 50.42, 316.59°)
OKLaboklab(30.29% 0.0827 -0.0982)
OKLCHoklch(30.29% 0.128 310.1)
XYZxyz(4.4226, 2.3496, 10.5743)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42115D #2C5D11
analogous
#1C115D #42115D #5D1152
triadic
#42115D #5D4211 #115D42
tetradic
#42115D #5D1C11 #2C5D11 #11525D
square
#42115D #5D1C11 #2C5D11 #11525D
split-complementary
#42115D #525D11 #115D1C
monochromatic
#12051A #1D0829 #42115D #671A91 #8B24C4

Accessibility & contrast

On white

14.29
#42115D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#42115D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42115D
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42115D#FFFFFF#000000##FFFFFF
##42115D1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285F
Deuteranopia (green-blind)
#002B5B
Tritanopia (blue-blind)
#3E2336
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #42115d;
/* rgb */ color: rgb(66, 17, 93);
/* oklch */ color: oklch(30.3% 0.128 310.1);
Tailwind
colors: {
  custom: {
    50: '#7a558b',
    500: '#42115d',
    950: '#000000',
  },
}
SCSS
$custom: #42115d;
$custom-light: #7a558b;
$custom-dark: #000000;
JSON
{
  "hex": "#42115d",
  "rgb": {
    "r": 66,
    "g": 17,
    "b": 93
  },
  "hsl": {
    "h": 278.684,
    "s": 69.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.30289,
    "c": 0.12842,
    "h": 310.1
  },
  "luminance": 0.02349
}

Semantic roles & 50–950 ramp

primary
#42115D
secondary
#579634
accent
#EC3C7A
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #42115D

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

Preview Lab → · Contrast checker → · Palette generator →

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