#42175D#42175D

#42175D is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.121 H 309.1°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#42175D
RGBrgb(66, 23, 93)
HSLhsl(277, 60%, 23%)
HSVhsv(277, 75%, 36%)
CMYKcmyk(29%, 75.3%, 0%, 63.5%)
CIE-LABlab(18.19, 33.87, -33.08)
CIE-LCHlch(18.19, 47.35, 315.68°)
OKLaboklab(30.98% 0.0762 -0.0937)
OKLCHoklch(30.98% 0.121 309.1)
XYZxyz(4.5285, 2.5614, 10.6096)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42175D #325D17
analogous
#1F175D #42175D #5D1755
triadic
#42175D #5D4217 #175D42
tetradic
#42175D #5D1F17 #325D17 #17555D
square
#42175D #5D1F17 #325D17 #17555D
split-complementary
#42175D #555D17 #175D1F
monochromatic
#110619 #1F0B2C #42175D #65238E #882FBF

Accessibility & contrast

On white

13.89
#42175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#42175D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42175D
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42175D#FFFFFF#000000##FFFFFF
##42175D1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5F
Deuteranopia (green-blind)
#082D5B
Tritanopia (blue-blind)
#3E2738
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #42175d;
/* rgb */ color: rgb(66, 23, 93);
/* oklch */ color: oklch(31.0% 0.121 309.1);
Tailwind
colors: {
  custom: {
    50: '#79588b',
    500: '#42175d',
    950: '#000000',
  },
}
SCSS
$custom: #42175d;
$custom-light: #79588b;
$custom-dark: #000000;
JSON
{
  "hex": "#42175d",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 276.857,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30976,
    "c": 0.12072,
    "h": 309.1
  },
  "luminance": 0.02561
}

Semantic roles & 50–950 ramp

primary
#42175D
secondary
#5E943C
accent
#E34482
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #42175D

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

Preview Lab → · Contrast checker → · Palette generator →

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