#42105B#42105B

#42105B is a dark, vivid purple. Relative luminance 0.023; OKLCH L 30.0% C 0.127 H 311.3°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#42105B
RGBrgb(66, 16, 91)
HSLhsl(280, 70%, 21%)
HSVhsv(280, 82%, 36%)
CMYKcmyk(27.5%, 82.4%, 0%, 64.3%)
CIE-LABlab(16.91, 36.57, -33.81)
CIE-LCHlch(16.91, 49.81, 317.24°)
OKLaboklab(30.02% 0.0841 -0.0958)
OKLCHoklch(30.02% 0.127 311.3)
XYZxyz(4.3200, 2.2843, 10.1088)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42105B #295B10
analogous
#1C105B #42105B #5B104E
triadic
#42105B #5B4210 #105B42
tetradic
#42105B #5B1C10 #295B10 #104E5B
square
#42105B #5B1C10 #295B10 #104E5B
split-complementary
#42105B #4E5B10 #105B1C
monochromatic
#13051A #1C0727 #42105B #68198F #8D22C3

Accessibility & contrast

On white

14.42
#42105B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42105B
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42105B#FFFFFF#000000##FFFFFF
##42105B1.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #42105b;
/* rgb */ color: rgb(66, 16, 91);
/* oklch */ color: oklch(30.0% 0.127 311.3);
Tailwind
colors: {
  custom: {
    50: '#7a558a',
    500: '#42105b',
    950: '#000000',
  },
}
SCSS
$custom: #42105b;
$custom-light: #7a558a;
$custom-dark: #000000;
JSON
{
  "hex": "#42105b",
  "rgb": {
    "r": 66,
    "g": 16,
    "b": 91
  },
  "hsl": {
    "h": 280,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.30018,
    "c": 0.12749,
    "h": 311.3
  },
  "luminance": 0.02284
}

Semantic roles & 50–950 ramp

primary
#42105B
secondary
#539433
accent
#ED3B76
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #42105B

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

Preview Lab → · Contrast checker → · Palette generator →

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