#36158F#36158F

#36158F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.179 H 284.0°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#36158F
RGBrgb(54, 21, 143)
HSLhsl(256, 74%, 32%)
HSVhsv(256, 85%, 56%)
CMYKcmyk(62.2%, 85.3%, 0%, 43.9%)
CIE-LABlab(21.22, 46.59, -60.33)
CIE-LCHlch(21.22, 76.22, 307.68°)
OKLaboklab(34.22% 0.0434 -0.1739)
OKLCHoklch(34.22% 0.179 284)
XYZxyz(6.7459, 3.3033, 26.2634)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#36158F #6E8F15
analogous
#15318F #36158F #73158F
triadic
#36158F #8F3615 #158F36
tetradic
#36158F #8F1531 #6E8F15 #158F73
square
#36158F #8F1531 #6E8F15 #158F73
split-complementary
#36158F #8F7315 #318F15
monochromatic
#0E0524 #220D5A #36158F #4A1DC4 #693CE2

Accessibility & contrast

On white

12.64
#36158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#36158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #36158F
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##36158F#FFFFFF#000000##FFFFFF
##36158F1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #36158f;
/* rgb */ color: rgb(54, 21, 143);
/* oklch */ color: oklch(34.2% 0.179 284.0);
Tailwind
colors: {
  custom: {
    50: '#7a59b1',
    500: '#36158f',
    950: '#000000',
  },
}
SCSS
$custom: #36158f;
$custom-light: #7a59b1;
$custom-dark: #000000;
JSON
{
  "hex": "#36158f",
  "rgb": {
    "r": 54,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 256.23,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34224,
    "c": 0.17925,
    "h": 284
  },
  "luminance": 0.03304
}

Semantic roles & 50–950 ramp

primary
#36158F
secondary
#9EC23E
accent
#F137BF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #36158F

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

Preview Lab → · Contrast checker → · Palette generator →

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