#42175B#42175B

#42175B is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.8% C 0.118 H 310.2°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#42175B
RGBrgb(66, 23, 91)
HSLhsl(278, 60%, 22%)
HSVhsv(278, 75%, 36%)
CMYKcmyk(27.5%, 74.7%, 0%, 64.3%)
CIE-LABlab(18.04, 33.37, -32.00)
CIE-LCHlch(18.04, 46.23, 316.21°)
OKLaboklab(30.82% 0.0764 -0.0905)
OKLCHoklch(30.82% 0.118 310.2)
XYZxyz(4.4411, 2.5265, 10.1492)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42175B #305B17
analogous
#20175B #42175B #5B1752
triadic
#42175B #5B4217 #175B42
tetradic
#42175B #5B2017 #305B17 #17525B
square
#42175B #5B2017 #305B17 #17525B
split-complementary
#42175B #525B17 #175B20
monochromatic
#120618 #1F0B2A #42175B #65238C #8930BD

Accessibility & contrast

On white

13.95
#42175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42175B
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42175B#FFFFFF#000000##FFFFFF
##42175B1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5D
Deuteranopia (green-blind)
#0C2D5A
Tritanopia (blue-blind)
#3F2637
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #42175b;
/* rgb */ color: rgb(66, 23, 91);
/* oklch */ color: oklch(30.8% 0.118 310.2);
Tailwind
colors: {
  custom: {
    50: '#79588a',
    500: '#42175b',
    950: '#000000',
  },
}
SCSS
$custom: #42175b;
$custom-light: #79588a;
$custom-dark: #000000;
JSON
{
  "hex": "#42175b",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 277.941,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.30815,
    "c": 0.11846,
    "h": 310.2
  },
  "luminance": 0.02526
}

Semantic roles & 50–950 ramp

primary
#42175B
secondary
#5C923C
accent
#E3457F
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #42175B

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

Preview Lab → · Contrast checker → · Palette generator →

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