#42105C#42105C

#42105C is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.129 H 310.8°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#42105C
RGBrgb(66, 16, 92)
HSLhsl(279, 70%, 21%)
HSVhsv(279, 83%, 36%)
CMYKcmyk(28.3%, 82.6%, 0%, 63.9%)
CIE-LABlab(17.00, 36.81, -34.35)
CIE-LCHlch(17.00, 50.35, 316.98°)
OKLaboklab(30.1% 0.0839 -0.0974)
OKLCHoklch(30.1% 0.129 310.8)
XYZxyz(4.3635, 2.3016, 10.3375)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42105C #2A5C10
analogous
#1C105C #42105C #5C1050
triadic
#42105C #5C4210 #105C42
tetradic
#42105C #5C1C10 #2A5C10 #10505C
square
#42105C #5C1C10 #2A5C10 #10505C
split-complementary
#42105C #505C10 #105C1C
monochromatic
#13051A #1D0728 #42105C #671990 #8D22C4

Accessibility & contrast

On white

14.38
#42105C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42105C
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42105C#FFFFFF#000000##FFFFFF
##42105C1.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285E
Deuteranopia (green-blind)
#002B5A
Tritanopia (blue-blind)
#3E2236
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #42105c;
/* rgb */ color: rgb(66, 16, 92);
/* oklch */ color: oklch(30.1% 0.129 310.8);
Tailwind
colors: {
  custom: {
    50: '#7a558b',
    500: '#42105c',
    950: '#000000',
  },
}
SCSS
$custom: #42105c;
$custom-light: #7a558b;
$custom-dark: #000000;
JSON
{
  "hex": "#42105c",
  "rgb": {
    "r": 66,
    "g": 16,
    "b": 92
  },
  "hsl": {
    "h": 279.474,
    "s": 70.37,
    "l": 21.176
  },
  "oklch": {
    "l": 0.30102,
    "c": 0.12853,
    "h": 310.8
  },
  "luminance": 0.02302
}

Semantic roles & 50–950 ramp

primary
#42105C
secondary
#549533
accent
#ED3B78
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #42105C

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

Preview Lab → · Contrast checker → · Palette generator →

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