#42115A#42115A

#42115A is a dark, vivid purple. Relative luminance 0.023; OKLCH L 30.0% C 0.125 H 311.7°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#42115A
RGBrgb(66, 17, 90)
HSLhsl(280, 68%, 21%)
HSVhsv(280, 81%, 35%)
CMYKcmyk(26.7%, 81.1%, 0%, 64.7%)
CIE-LABlab(16.98, 35.92, -33.04)
CIE-LCHlch(16.98, 48.80, 317.39°)
OKLaboklab(30.04% 0.0833 -0.0935)
OKLCHoklch(30.04% 0.125 311.7)
XYZxyz(4.2923, 2.2974, 9.8882)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42115A #295A11
analogous
#1D115A #42115A #5A114D
triadic
#42115A #5A4211 #115A42
tetradic
#42115A #5A1D11 #295A11 #114D5A
square
#42115A #5A1D11 #295A11 #114D5A
split-complementary
#42115A #4D5A11 #115A1D
monochromatic
#13051A #1C0727 #42115A #681B8D #8D24C1

Accessibility & contrast

On white

14.39
#42115A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42115A
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42115A#FFFFFF#000000##FFFFFF
##42115A1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285C
Deuteranopia (green-blind)
#052B58
Tritanopia (blue-blind)
#3F2235
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #42115a;
/* rgb */ color: rgb(66, 17, 90);
/* oklch */ color: oklch(30.0% 0.125 311.7);
Tailwind
colors: {
  custom: {
    50: '#7a5589',
    500: '#42115a',
    950: '#000000',
  },
}
SCSS
$custom: #42115a;
$custom-light: #7a5589;
$custom-dark: #000000;
JSON
{
  "hex": "#42115a",
  "rgb": {
    "r": 66,
    "g": 17,
    "b": 90
  },
  "hsl": {
    "h": 280.274,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.30036,
    "c": 0.12527,
    "h": 311.7
  },
  "luminance": 0.02297
}

Semantic roles & 50–950 ramp

primary
#42115A
secondary
#539334
accent
#EB3D76
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #42115A

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

Preview Lab → · Contrast checker → · Palette generator →

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