#42105D#42105D

#42105D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.130 H 310.2°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#42105D
RGBrgb(66, 16, 93)
HSLhsl(279, 71%, 21%)
HSVhsv(279, 83%, 36%)
CMYKcmyk(29%, 82.8%, 0%, 63.5%)
CIE-LABlab(17.08, 37.05, -34.88)
CIE-LCHlch(17.08, 50.88, 316.72°)
OKLaboklab(30.19% 0.0837 -0.0989)
OKLCHoklch(30.19% 0.13 310.2)
XYZxyz(4.4075, 2.3192, 10.5693)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42105D #2B5D10
analogous
#1C105D #42105D #5D1052
triadic
#42105D #5D4210 #105D42
tetradic
#42105D #5D1C10 #2B5D10 #10525D
square
#42105D #5D1C10 #2B5D10 #10525D
split-complementary
#42105D #525D10 #105D1C
monochromatic
#13041A #1D0729 #42105D #671991 #8C22C5

Accessibility & contrast

On white

14.35
#42105D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42105D
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42105D#FFFFFF#000000##FFFFFF
##42105D1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285F
Deuteranopia (green-blind)
#002B5B
Tritanopia (blue-blind)
#3E2336
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #42105d;
/* rgb */ color: rgb(66, 16, 93);
/* oklch */ color: oklch(30.2% 0.130 310.2);
Tailwind
colors: {
  custom: {
    50: '#7a558b',
    500: '#42105d',
    950: '#000000',
  },
}
SCSS
$custom: #42105d;
$custom-light: #7a558b;
$custom-dark: #000000;
JSON
{
  "hex": "#42105d",
  "rgb": {
    "r": 66,
    "g": 16,
    "b": 93
  },
  "hsl": {
    "h": 278.961,
    "s": 70.642,
    "l": 21.373
  },
  "oklch": {
    "l": 0.30188,
    "c": 0.12957,
    "h": 310.2
  },
  "luminance": 0.02319
}

Semantic roles & 50–950 ramp

primary
#42105D
secondary
#569633
accent
#ED3A79
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #42105D

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

Preview Lab → · Contrast checker → · Palette generator →

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