#42165D#42165D

#42165D is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.122 H 309.3°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#42165D
RGBrgb(66, 22, 93)
HSLhsl(277, 62%, 23%)
HSVhsv(277, 76%, 36%)
CMYKcmyk(29%, 76.3%, 0%, 63.5%)
CIE-LABlab(18.02, 34.37, -33.36)
CIE-LCHlch(18.02, 47.89, 315.85°)
OKLaboklab(30.85% 0.0773 -0.0945)
OKLCHoklch(30.85% 0.122 309.3)
XYZxyz(4.5091, 2.5225, 10.6032)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42165D #315D16
analogous
#1E165D #42165D #5D1654
triadic
#42165D #5D4216 #165D42
tetradic
#42165D #5D1E16 #315D16 #16545D
square
#42165D #5D1E16 #315D16 #16545D
split-complementary
#42165D #545D16 #165D1E
monochromatic
#120619 #1F0A2C #42165D #65228E #882DC0

Accessibility & contrast

On white

13.96
#42165D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#42165D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42165D
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42165D#FFFFFF#000000##FFFFFF
##42165D1.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5F
Deuteranopia (green-blind)
#062D5B
Tritanopia (blue-blind)
#3E2638
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #42165d;
/* rgb */ color: rgb(66, 22, 93);
/* oklch */ color: oklch(30.9% 0.122 309.3);
Tailwind
colors: {
  custom: {
    50: '#7a588b',
    500: '#42165d',
    950: '#000000',
  },
}
SCSS
$custom: #42165d;
$custom-light: #7a588b;
$custom-dark: #000000;
JSON
{
  "hex": "#42165d",
  "rgb": {
    "r": 66,
    "g": 22,
    "b": 93
  },
  "hsl": {
    "h": 277.183,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30852,
    "c": 0.12211,
    "h": 309.3
  },
  "luminance": 0.02522
}

Semantic roles & 50–950 ramp

primary
#42165D
secondary
#5D943B
accent
#E54381
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #42165D

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

Preview Lab → · Contrast checker → · Palette generator →

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