#42135C#42135C

#42135C is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.125 H 310.3°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#42135C
RGBrgb(66, 19, 92)
HSLhsl(279, 66%, 22%)
HSVhsv(279, 79%, 36%)
CMYKcmyk(28.3%, 79.3%, 0%, 63.9%)
CIE-LABlab(17.45, 35.52, -33.62)
CIE-LCHlch(17.45, 48.91, 316.57°)
OKLaboklab(30.42% 0.0808 -0.0952)
OKLCHoklch(30.42% 0.125 310.3)
XYZxyz(4.4110, 2.3968, 10.3534)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42135C #2D5C13
analogous
#1E135C #42135C #5C1352
triadic
#42135C #5C4213 #135C42
tetradic
#42135C #5C1E13 #2D5C13 #13525C
square
#42135C #5C1E13 #2D5C13 #13525C
split-complementary
#42135C #525C13 #135C1E
monochromatic
#120519 #1E0929 #42135C #661D8F #8B28C1

Accessibility & contrast

On white

14.19
#42135C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#42135C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42135C
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42135C#FFFFFF#000000##FFFFFF
##42135C1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295E
Deuteranopia (green-blind)
#042C5A
Tritanopia (blue-blind)
#3E2436
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #42135c;
/* rgb */ color: rgb(66, 19, 92);
/* oklch */ color: oklch(30.4% 0.125 310.3);
Tailwind
colors: {
  custom: {
    50: '#7a568b',
    500: '#42135c',
    950: '#000000',
  },
}
SCSS
$custom: #42135c;
$custom-light: #7a568b;
$custom-dark: #000000;
JSON
{
  "hex": "#42135c",
  "rgb": {
    "r": 66,
    "g": 19,
    "b": 92
  },
  "hsl": {
    "h": 278.63,
    "s": 65.766,
    "l": 21.765
  },
  "oklch": {
    "l": 0.30419,
    "c": 0.12493,
    "h": 310.3
  },
  "luminance": 0.02397
}

Semantic roles & 50–950 ramp

primary
#42135C
secondary
#589437
accent
#E93F7C
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #42135C

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

Preview Lab → · Contrast checker → · Palette generator →

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