#42135A#42135A

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

Color values

HEX#42135A
RGBrgb(66, 19, 90)
HSLhsl(280, 65%, 21%)
HSVhsv(280, 79%, 35%)
CMYKcmyk(26.7%, 78.9%, 0%, 64.7%)
CIE-LABlab(17.28, 35.04, -32.54)
CIE-LCHlch(17.28, 47.82, 317.11°)
OKLaboklab(30.25% 0.0812 -0.0921)
OKLCHoklch(30.25% 0.123 311.4)
XYZxyz(4.3248, 2.3623, 9.8990)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42135A #2B5A13
analogous
#1F135A #42135A #5A134F
triadic
#42135A #5A4213 #135A42
tetradic
#42135A #5A1F13 #2B5A13 #134F5A
square
#42135A #5A1F13 #2B5A13 #134F5A
split-complementary
#42135A #4F5A13 #135A1F
monochromatic
#130519 #1D0827 #42135A #671E8D #8C28BF

Accessibility & contrast

On white

14.26
#42135A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#42135A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42135A
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42135A#FFFFFF#000000##FFFFFF
##42135A1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285C
Deuteranopia (green-blind)
#082B58
Tritanopia (blue-blind)
#3F2335
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #42135a;
/* rgb */ color: rgb(66, 19, 90);
/* oklch */ color: oklch(30.3% 0.123 311.4);
Tailwind
colors: {
  custom: {
    50: '#7a5689',
    500: '#42135a',
    950: '#000000',
  },
}
SCSS
$custom: #42135a;
$custom-light: #7a5689;
$custom-dark: #000000;
JSON
{
  "hex": "#42135a",
  "rgb": {
    "r": 66,
    "g": 19,
    "b": 90
  },
  "hsl": {
    "h": 279.718,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.30254,
    "c": 0.12277,
    "h": 311.4
  },
  "luminance": 0.02362
}

Semantic roles & 50–950 ramp

primary
#42135A
secondary
#569237
accent
#E84079
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #42135A

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

Preview Lab → · Contrast checker → · Palette generator →

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