#36158E#36158E

#36158E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.178 H 284.2°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#36158E
RGBrgb(54, 21, 142)
HSLhsl(256, 74%, 32%)
HSVhsv(256, 85%, 56%)
CMYKcmyk(62%, 85.2%, 0%, 44.3%)
CIE-LABlab(21.11, 46.30, -59.89)
CIE-LCHlch(21.11, 75.70, 307.71°)
OKLaboklab(34.11% 0.0438 -0.1726)
OKLCHoklch(34.11% 0.178 284.2)
XYZxyz(6.6705, 3.2732, 25.8662)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#36158E #6D8E15
analogous
#15308E #36158E #73158E
triadic
#36158E #8E3615 #158E36
tetradic
#36158E #8E1530 #6D8E15 #158E73
square
#36158E #8E1530 #6D8E15 #158E73
split-complementary
#36158E #8E7315 #308E15
monochromatic
#0D0523 #220D59 #36158E #4A1DC3 #693BE2

Accessibility & contrast

On white

12.69
#36158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#36158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #36158E
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##36158E#FFFFFF#000000##FFFFFF
##36158E1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #36158e;
/* rgb */ color: rgb(54, 21, 142);
/* oklch */ color: oklch(34.1% 0.178 284.2);
Tailwind
colors: {
  custom: {
    50: '#7a59b0',
    500: '#36158e',
    950: '#000000',
  },
}
SCSS
$custom: #36158e;
$custom-light: #7a59b0;
$custom-dark: #000000;
JSON
{
  "hex": "#36158e",
  "rgb": {
    "r": 54,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 256.364,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34112,
    "c": 0.17811,
    "h": 284.2
  },
  "luminance": 0.03274
}

Semantic roles & 50–950 ramp

primary
#36158E
secondary
#9DC23D
accent
#F137BE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #36158E

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

Preview Lab → · Contrast checker → · Palette generator →

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