#42105A#42105A

#42105A is a dark, vivid purple. Relative luminance 0.023; OKLCH L 29.9% C 0.126 H 311.8°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#42105A
RGBrgb(66, 16, 90)
HSLhsl(281, 70%, 21%)
HSVhsv(281, 82%, 35%)
CMYKcmyk(26.7%, 82.2%, 0%, 64.7%)
CIE-LABlab(16.83, 36.33, -33.28)
CIE-LCHlch(16.83, 49.27, 317.51°)
OKLaboklab(29.93% 0.0843 -0.0942)
OKLCHoklch(29.93% 0.126 311.8)
XYZxyz(4.2772, 2.2671, 9.8832)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42105A #285A10
analogous
#1D105A #42105A #5A104D
triadic
#42105A #5A4210 #105A42
tetradic
#42105A #5A1D10 #285A10 #104D5A
square
#42105A #5A1D10 #285A10 #104D5A
split-complementary
#42105A #4D5A10 #105A1D
monochromatic
#13051A #1C0726 #42105A #68198E #8E22C2

Accessibility & contrast

On white

14.45
#42105A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#42105A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42105A
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42105A#FFFFFF#000000##FFFFFF
##42105A1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275C
Deuteranopia (green-blind)
#042A58
Tritanopia (blue-blind)
#3F2234
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #42105a;
/* rgb */ color: rgb(66, 16, 90);
/* oklch */ color: oklch(29.9% 0.126 311.8);
Tailwind
colors: {
  custom: {
    50: '#7a5589',
    500: '#42105a',
    950: '#000000',
  },
}
SCSS
$custom: #42105a;
$custom-light: #7a5589;
$custom-dark: #000000;
JSON
{
  "hex": "#42105a",
  "rgb": {
    "r": 66,
    "g": 16,
    "b": 90
  },
  "hsl": {
    "h": 280.541,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29933,
    "c": 0.12645,
    "h": 311.8
  },
  "luminance": 0.02267
}

Semantic roles & 50–950 ramp

primary
#42105A
secondary
#529333
accent
#ED3B75
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #42105A

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

Preview Lab → · Contrast checker → · Palette generator →

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