#42115B#42115B

#42115B is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.126 H 311.2°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#42115B
RGBrgb(66, 17, 91)
HSLhsl(280, 69%, 21%)
HSVhsv(280, 81%, 36%)
CMYKcmyk(27.5%, 81.3%, 0%, 64.3%)
CIE-LABlab(17.06, 36.15, -33.58)
CIE-LCHlch(17.06, 49.34, 317.11°)
OKLaboklab(30.12% 0.0831 -0.0951)
OKLCHoklch(30.12% 0.126 311.2)
XYZxyz(4.3352, 2.3146, 10.1139)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42115B #2A5B11
analogous
#1D115B #42115B #5B114F
triadic
#42115B #5B4211 #115B42
tetradic
#42115B #5B1D11 #2A5B11 #114F5B
square
#42115B #5B1D11 #2A5B11 #114F5B
split-complementary
#42115B #4F5B11 #115B1D
monochromatic
#13051A #1D0727 #42115B #671B8F #8D24C2

Accessibility & contrast

On white

14.36
#42115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#42115B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42115B
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42115B#FFFFFF#000000##FFFFFF
##42115B1.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#032B59
Tritanopia (blue-blind)
#3F2235
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #42115b;
/* rgb */ color: rgb(66, 17, 91);
/* oklch */ color: oklch(30.1% 0.126 311.2);
Tailwind
colors: {
  custom: {
    50: '#7a558a',
    500: '#42115b',
    950: '#000000',
  },
}
SCSS
$custom: #42115b;
$custom-light: #7a558a;
$custom-dark: #000000;
JSON
{
  "hex": "#42115b",
  "rgb": {
    "r": 66,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 279.73,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.3012,
    "c": 0.12632,
    "h": 311.2
  },
  "luminance": 0.02314
}

Semantic roles & 50–950 ramp

primary
#42115B
secondary
#549434
accent
#EB3C78
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #42115B

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

Preview Lab → · Contrast checker → · Palette generator →

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