#42115F#42115F

#42115F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.131 H 309.1°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#42115F
RGBrgb(66, 17, 95)
HSLhsl(278, 70%, 22%)
HSVhsv(278, 82%, 37%)
CMYKcmyk(30.5%, 82.1%, 0%, 62.7%)
CIE-LABlab(17.39, 37.11, -35.71)
CIE-LCHlch(17.39, 51.50, 316.11°)
OKLaboklab(30.46% 0.0822 -0.1014)
OKLCHoklch(30.46% 0.131 309.1)
XYZxyz(4.5124, 2.3855, 11.0470)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42115F #2E5F11
analogous
#1B115F #42115F #5F1155
triadic
#42115F #5F4211 #115F42
tetradic
#42115F #5F1B11 #2E5F11 #11555F
square
#42115F #5F1B11 #2E5F11 #11555F
split-complementary
#42115F #555F11 #115F1B
monochromatic
#12051A #1E082B #42115F #661A93 #8A24C7

Accessibility & contrast

On white

14.22
#42115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#42115F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42115F
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42115F#FFFFFF#000000##FFFFFF
##42115F1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#3E2438
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #42115f;
/* rgb */ color: rgb(66, 17, 95);
/* oklch */ color: oklch(30.5% 0.131 309.1);
Tailwind
colors: {
  custom: {
    50: '#7a558d',
    500: '#42115f',
    950: '#000000',
  },
}
SCSS
$custom: #42115f;
$custom-light: #7a558d;
$custom-dark: #000000;
JSON
{
  "hex": "#42115f",
  "rgb": {
    "r": 66,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 277.692,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.3046,
    "c": 0.13053,
    "h": 309.1
  },
  "luminance": 0.02385
}

Semantic roles & 50–950 ramp

primary
#42115F
secondary
#599834
accent
#EC3B7D
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #42115F

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

Preview Lab → · Contrast checker → · Palette generator →

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