#42135B#42135B

#42135B is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.124 H 310.9°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#42135B
RGBrgb(66, 19, 91)
HSLhsl(279, 65%, 22%)
HSVhsv(279, 79%, 36%)
CMYKcmyk(27.5%, 79.1%, 0%, 64.3%)
CIE-LABlab(17.36, 35.28, -33.08)
CIE-LCHlch(17.36, 48.37, 316.84°)
OKLaboklab(30.34% 0.081 -0.0937)
OKLCHoklch(30.34% 0.124 310.9)
XYZxyz(4.3676, 2.3794, 10.1247)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42135B #2C5B13
analogous
#1E135B #42135B #5B1350
triadic
#42135B #5B4213 #135B42
tetradic
#42135B #5B1E13 #2C5B13 #13505B
square
#42135B #5B1E13 #2C5B13 #13505B
split-complementary
#42135B #505B13 #135B1E
monochromatic
#120519 #1D0828 #42135B #671E8E #8B28C0

Accessibility & contrast

On white

14.23
#42135B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42135B
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42135B#FFFFFF#000000##FFFFFF
##42135B1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#062B59
Tritanopia (blue-blind)
#3F2436
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #42135b;
/* rgb */ color: rgb(66, 19, 91);
/* oklch */ color: oklch(30.3% 0.124 310.9);
Tailwind
colors: {
  custom: {
    50: '#7a568a',
    500: '#42135b',
    950: '#000000',
  },
}
SCSS
$custom: #42135b;
$custom-light: #7a568a;
$custom-dark: #000000;
JSON
{
  "hex": "#42135b",
  "rgb": {
    "r": 66,
    "g": 19,
    "b": 91
  },
  "hsl": {
    "h": 279.167,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.30336,
    "c": 0.12385,
    "h": 310.9
  },
  "luminance": 0.02379
}

Semantic roles & 50–950 ramp

primary
#42135B
secondary
#579337
accent
#E83F7A
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #42135B

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

Preview Lab → · Contrast checker → · Palette generator →

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