#42135F#42135F

#42135F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.128 H 308.8°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#42135F
RGBrgb(66, 19, 95)
HSLhsl(277, 67%, 22%)
HSVhsv(277, 80%, 37%)
CMYKcmyk(30.5%, 80%, 0%, 62.7%)
CIE-LABlab(17.69, 36.25, -35.22)
CIE-LCHlch(17.69, 50.55, 315.83°)
OKLaboklab(30.67% 0.0802 -0.0999)
OKLCHoklch(30.67% 0.128 308.8)
XYZxyz(4.5448, 2.4503, 11.0578)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42135F #305F13
analogous
#1C135F #42135F #5F1356
triadic
#42135F #5F4213 #135F42
tetradic
#42135F #5F1C13 #305F13 #13565F
square
#42135F #5F1C13 #305F13 #13565F
split-complementary
#42135F #565F13 #135F1C
monochromatic
#12051A #1F092C #42135F #651D92 #8927C5

Accessibility & contrast

On white

14.09
#42135F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#42135F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42135F
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42135F#FFFFFF#000000##FFFFFF
##42135F1.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#002C5D
Tritanopia (blue-blind)
#3E2538
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #42135f;
/* rgb */ color: rgb(66, 19, 95);
/* oklch */ color: oklch(30.7% 0.128 308.8);
Tailwind
colors: {
  custom: {
    50: '#7a568d',
    500: '#42135f',
    950: '#000000',
  },
}
SCSS
$custom: #42135f;
$custom-light: #7a568d;
$custom-dark: #000000;
JSON
{
  "hex": "#42135f",
  "rgb": {
    "r": 66,
    "g": 19,
    "b": 95
  },
  "hsl": {
    "h": 277.105,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.30671,
    "c": 0.12817,
    "h": 308.8
  },
  "luminance": 0.0245
}

Semantic roles & 50–950 ramp

primary
#42135F
secondary
#5C9737
accent
#EA3E80
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #42135F

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

Preview Lab → · Contrast checker → · Palette generator →

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