#42136F#42136F

#42136F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.145 H 301.5°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#42136F
RGBrgb(66, 19, 111)
HSLhsl(271, 71%, 25%)
HSVhsv(271, 83%, 44%)
CMYKcmyk(40.5%, 82.9%, 0%, 56.5%)
CIE-LABlab(19.11, 40.28, -43.43)
CIE-LCHlch(19.11, 59.23, 312.85°)
OKLaboklab(32.1% 0.076 -0.1241)
OKLCHoklch(32.1% 0.145 301.5)
XYZxyz(5.3482, 2.7717, 15.2891)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42136F #406F13
analogous
#14136F #42136F #6F136E
triadic
#42136F #6F4213 #136F42
tetradic
#42136F #6F1413 #406F13 #136E6F
square
#42136F #6F1413 #406F13 #136E6F
split-complementary
#42136F #6E6F13 #136F14
monochromatic
#10041A #230A3B #42136F #611CA3 #8025D8

Accessibility & contrast

On white

13.51
#42136F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#42136F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42136F
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42136F#FFFFFF#000000##FFFFFF
##42136F1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E72
Deuteranopia (green-blind)
#002E6D
Tritanopia (blue-blind)
#382C41
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #42136f;
/* rgb */ color: rgb(66, 19, 111);
/* oklch */ color: oklch(32.1% 0.145 301.5);
Tailwind
colors: {
  custom: {
    50: '#7c5799',
    500: '#42136f',
    950: '#000000',
  },
}
SCSS
$custom: #42136f;
$custom-light: #7c5799;
$custom-dark: #000000;
JSON
{
  "hex": "#42136f",
  "rgb": {
    "r": 66,
    "g": 19,
    "b": 111
  },
  "hsl": {
    "h": 270.652,
    "s": 70.769,
    "l": 25.49
  },
  "oklch": {
    "l": 0.32102,
    "c": 0.14549,
    "h": 301.5
  },
  "luminance": 0.02772
}

Semantic roles & 50–950 ramp

primary
#42136F
secondary
#6EA638
accent
#EE3A92
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #42136F

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

Preview Lab → · Contrast checker → · Palette generator →

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