#42175F#42175F

#42175F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.123 H 308.1°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#42175F
RGBrgb(66, 23, 95)
HSLhsl(276, 61%, 23%)
HSVhsv(276, 76%, 37%)
CMYKcmyk(30.5%, 75.8%, 0%, 62.7%)
CIE-LABlab(18.35, 34.38, -34.15)
CIE-LCHlch(18.35, 48.46, 315.19°)
OKLaboklab(31.14% 0.0759 -0.0968)
OKLCHoklch(31.14% 0.123 308.1)
XYZxyz(4.6183, 2.5973, 11.0823)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42175F #345F17
analogous
#1E175F #42175F #5F1758
triadic
#42175F #5F4217 #175F42
tetradic
#42175F #5F1E17 #345F17 #17585F
square
#42175F #5F1E17 #345F17 #17585F
split-complementary
#42175F #585F17 #175F1E
monochromatic
#110619 #200B2E #42175F #642390 #862FC2

Accessibility & contrast

On white

13.82
#42175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#42175F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42175F
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42175F#FFFFFF#000000##FFFFFF
##42175F1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B61
Deuteranopia (green-blind)
#042D5D
Tritanopia (blue-blind)
#3D2739
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #42175f;
/* rgb */ color: rgb(66, 23, 95);
/* oklch */ color: oklch(31.1% 0.123 308.1);
Tailwind
colors: {
  custom: {
    50: '#7a588d',
    500: '#42175f',
    950: '#000000',
  },
}
SCSS
$custom: #42175f;
$custom-light: #7a588d;
$custom-dark: #000000;
JSON
{
  "hex": "#42175f",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 275.833,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.31139,
    "c": 0.123,
    "h": 308.1
  },
  "luminance": 0.02597
}

Semantic roles & 50–950 ramp

primary
#42175F
secondary
#60963C
accent
#E44484
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #42175F

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

Preview Lab → · Contrast checker → · Palette generator →

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