#5F36AC#5F36AC

#5F36AC is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.1% C 0.178 H 294.0°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#5F36AC
RGBrgb(95, 54, 172)
HSLhsl(261, 52%, 44%)
HSVhsv(261, 69%, 67%)
CMYKcmyk(44.8%, 68.6%, 0%, 32.5%)
CIE-LABlab(34.09, 44.88, -56.72)
CIE-LCHlch(34.09, 72.33, 308.35°)
OKLaboklab(45.14% 0.0724 -0.1623)
OKLCHoklch(45.14% 0.178 294)
XYZxyz(13.4829, 8.0494, 39.8650)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F36AC #83AC36
analogous
#3648AC #5F36AC #9A36AC
triadic
#5F36AC #AC5F36 #36AC5F
tetradic
#5F36AC #AC3648 #83AC36 #36AC9A
square
#5F36AC #AC3648 #83AC36 #36AC9A
split-complementary
#5F36AC #AC9A36 #48AC36
monochromatic
#2C194F #45277D #5F36AC #7E55CA #A184D8

Accessibility & contrast

On white

8.05
#5F36AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5F36AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F36AC
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F36AC#FFFFFF#000000##FFFFFF
##5F36AC1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B0
Deuteranopia (green-blind)
#004EAA
Tritanopia (blue-blind)
#49536C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f36ac;
/* rgb */ color: rgb(95, 54, 172);
/* oklch */ color: oklch(45.1% 0.178 294.0);
Tailwind
colors: {
  custom: {
    50: '#9370c6',
    500: '#5f36ac',
    950: '#000000',
  },
}
SCSS
$custom: #5f36ac;
$custom-light: #9370c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f36ac",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 172
  },
  "hsl": {
    "h": 260.847,
    "s": 52.212,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45142,
    "c": 0.17769,
    "h": 294
  },
  "luminance": 0.0805
}

Semantic roles & 50–950 ramp

primary
#5F36AC
secondary
#AAC27C
accent
#DC4CAA
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F36AC

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

Preview Lab → · Contrast checker → · Palette generator →

#5F36AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva