#36217B#36217B

#36217B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.143 H 286.6°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#36217B
RGBrgb(54, 33, 123)
HSLhsl(254, 58%, 31%)
HSVhsv(254, 73%, 48%)
CMYKcmyk(56.1%, 73.2%, 0%, 51.8%)
CIE-LABlab(21.21, 34.61, -47.75)
CIE-LCHlch(21.21, 58.97, 305.94°)
OKLaboklab(33.6% 0.0409 -0.1373)
OKLCHoklch(33.6% 0.143 286.6)
XYZxyz(5.6393, 3.3017, 19.0752)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#36217B #667B21
analogous
#21397B #36217B #63217B
triadic
#36217B #7B3621 #217B36
tetradic
#36217B #7B2139 #667B21 #217B63
square
#36217B #7B2139 #667B21 #217B63
split-complementary
#36217B #7B6321 #397B21
monochromatic
#0C071A #21144B #36217B #4B2EAB #6848CE

Accessibility & contrast

On white

12.65
#36217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#36217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #36217B
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##36217B#FFFFFF#000000##FFFFFF
##36217B1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#19394B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #36217b;
/* rgb */ color: rgb(54, 33, 123);
/* oklch */ color: oklch(33.6% 0.143 286.6);
Tailwind
colors: {
  custom: {
    50: '#755ea2',
    500: '#36217b',
    950: '#000000',
  },
}
SCSS
$custom: #36217b;
$custom-light: #755ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#36217b",
  "rgb": {
    "r": 54,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 254,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33595,
    "c": 0.14325,
    "h": 286.6
  },
  "luminance": 0.03302
}

Semantic roles & 50–950 ramp

primary
#36217B
secondary
#97AE4A
accent
#E147BD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #36217B

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

Preview Lab → · Contrast checker → · Palette generator →

#36217B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva