#42115C#42115C

#42115C is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.127 H 310.6°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#42115C
RGBrgb(66, 17, 92)
HSLhsl(279, 69%, 21%)
HSVhsv(279, 82%, 36%)
CMYKcmyk(28.3%, 81.5%, 0%, 63.9%)
CIE-LABlab(17.14, 36.39, -34.11)
CIE-LCHlch(17.14, 49.88, 316.85°)
OKLaboklab(30.2% 0.0829 -0.0967)
OKLCHoklch(30.2% 0.127 310.6)
XYZxyz(4.3786, 2.3320, 10.3426)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42115C #2B5C11
analogous
#1D115C #42115C #5C1151
triadic
#42115C #5C4211 #115C42
tetradic
#42115C #5C1D11 #2B5C11 #11515C
square
#42115C #5C1D11 #2B5C11 #11515C
split-complementary
#42115C #515C11 #115C1D
monochromatic
#13051A #1D0728 #42115C #671B90 #8C24C3

Accessibility & contrast

On white

14.32
#42115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42115C
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42115C#FFFFFF#000000##FFFFFF
##42115C1.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285E
Deuteranopia (green-blind)
#012B5A
Tritanopia (blue-blind)
#3E2336
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #42115c;
/* rgb */ color: rgb(66, 17, 92);
/* oklch */ color: oklch(30.2% 0.127 310.6);
Tailwind
colors: {
  custom: {
    50: '#7a558b',
    500: '#42115c',
    950: '#000000',
  },
}
SCSS
$custom: #42115c;
$custom-light: #7a558b;
$custom-dark: #000000;
JSON
{
  "hex": "#42115c",
  "rgb": {
    "r": 66,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 279.2,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.30204,
    "c": 0.12737,
    "h": 310.6
  },
  "luminance": 0.02332
}

Semantic roles & 50–950 ramp

primary
#42115C
secondary
#569534
accent
#EC3C79
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #42115C

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

Preview Lab → · Contrast checker → · Palette generator →

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