#36218A#36218A

#36218A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.162 H 283.3°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#36218A
RGBrgb(54, 33, 138)
HSLhsl(252, 61%, 34%)
HSVhsv(252, 76%, 54%)
CMYKcmyk(60.9%, 76.1%, 0%, 45.9%)
CIE-LABlab(22.68, 39.33, -54.80)
CIE-LCHlch(22.68, 67.46, 305.67°)
OKLaboklab(35.08% 0.0374 -0.1579)
OKLCHoklch(35.08% 0.162 283.3)
XYZxyz(6.6512, 3.7065, 24.4048)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#36218A #758A21
analogous
#21408A #36218A #6A218A
triadic
#36218A #8A3621 #218A36
tetradic
#36218A #8A2140 #758A21 #218A6A
square
#36218A #8A2140 #758A21 #218A6A
split-complementary
#36218A #8A6A21 #408A21
monochromatic
#0F0927 #231559 #36218A #492DBB #6B50D5

Accessibility & contrast

On white

12.06
#36218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#36218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #36218A
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##36218A#FFFFFF#000000##FFFFFF
##36218A1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #36218a;
/* rgb */ color: rgb(54, 33, 138);
/* oklch */ color: oklch(35.1% 0.162 283.3);
Tailwind
colors: {
  custom: {
    50: '#785fad',
    500: '#36218a',
    950: '#000000',
  },
}
SCSS
$custom: #36218a;
$custom-light: #785fad;
$custom-dark: #000000;
JSON
{
  "hex": "#36218a",
  "rgb": {
    "r": 54,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 252,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35078,
    "c": 0.16231,
    "h": 283.3
  },
  "luminance": 0.03707
}

Semantic roles & 50–950 ramp

primary
#36218A
secondary
#A3B94E
accent
#E543C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #36218A

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

Preview Lab → · Contrast checker → · Palette generator →

#36218A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva