#36217F#36217F

#36217F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.148 H 285.7°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#36217F
RGBrgb(54, 33, 127)
HSLhsl(253, 59%, 31%)
HSVhsv(253, 74%, 50%)
CMYKcmyk(57.5%, 74%, 0%, 50.2%)
CIE-LABlab(21.59, 35.87, -49.66)
CIE-LCHlch(21.59, 61.26, 305.84°)
OKLaboklab(33.98% 0.0401 -0.1429)
OKLCHoklch(33.98% 0.148 285.7)
XYZxyz(5.8948, 3.4040, 20.4210)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#36217F #6A7F21
analogous
#213B7F #36217F #65217F
triadic
#36217F #7F3621 #217F36
tetradic
#36217F #7F213B #6A7F21 #217F65
square
#36217F #7F213B #6A7F21 #217F65
split-complementary
#36217F #7F6521 #3B7F21
monochromatic
#0D081E #21144E #36217F #4B2EB0 #684AD0

Accessibility & contrast

On white

12.49
#36217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#36217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #36217F
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##36217F#FFFFFF#000000##FFFFFF
##36217F1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#143A4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #36217f;
/* rgb */ color: rgb(54, 33, 127);
/* oklch */ color: oklch(34.0% 0.148 285.7);
Tailwind
colors: {
  custom: {
    50: '#765ea5',
    500: '#36217f',
    950: '#000000',
  },
}
SCSS
$custom: #36217f;
$custom-light: #765ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#36217f",
  "rgb": {
    "r": 54,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 253.404,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33982,
    "c": 0.1484,
    "h": 285.7
  },
  "luminance": 0.03404
}

Semantic roles & 50–950 ramp

primary
#36217F
secondary
#9BB24A
accent
#E246BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #36217F

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

Preview Lab → · Contrast checker → · Palette generator →

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