#42136D#42136D

#42136D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.143 H 302.3°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#42136D
RGBrgb(66, 19, 109)
HSLhsl(271, 70%, 25%)
HSVhsv(271, 83%, 43%)
CMYKcmyk(39.4%, 82.6%, 0%, 57.3%)
CIE-LABlab(18.92, 39.77, -42.43)
CIE-LCHlch(18.92, 58.15, 313.15°)
OKLaboklab(31.92% 0.0766 -0.1211)
OKLCHoklch(31.92% 0.143 302.3)
XYZxyz(5.2393, 2.7281, 14.7156)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42136D #3E6D13
analogous
#15136D #42136D #6D136B
triadic
#42136D #6D4213 #136D42
tetradic
#42136D #6D1513 #3E6D13 #136B6D
square
#42136D #6D1513 #3E6D13 #136B6D
split-complementary
#42136D #6B6D13 #136D15
monochromatic
#10051A #220A39 #42136D #621CA1 #8125D5

Accessibility & contrast

On white

13.59
#42136D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42136D
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42136D#FFFFFF#000000##FFFFFF
##42136D1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6F
Deuteranopia (green-blind)
#002E6B
Tritanopia (blue-blind)
#392B40
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #42136d;
/* rgb */ color: rgb(66, 19, 109);
/* oklch */ color: oklch(31.9% 0.143 302.3);
Tailwind
colors: {
  custom: {
    50: '#7b5798',
    500: '#42136d',
    950: '#000000',
  },
}
SCSS
$custom: #42136d;
$custom-light: #7b5798;
$custom-dark: #000000;
JSON
{
  "hex": "#42136d",
  "rgb": {
    "r": 66,
    "g": 19,
    "b": 109
  },
  "hsl": {
    "h": 271.333,
    "s": 70.313,
    "l": 25.098
  },
  "oklch": {
    "l": 0.31915,
    "c": 0.14333,
    "h": 302.3
  },
  "luminance": 0.02728
}

Semantic roles & 50–950 ramp

primary
#42136D
secondary
#6BA438
accent
#ED3B90
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #42136D

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

Preview Lab → · Contrast checker → · Palette generator →

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