#5F36AA#5F36AA

#5F36AA is a dark, vivid violet. Relative luminance 0.080; OKLCH L 45.0% C 0.175 H 294.5°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#5F36AA
RGBrgb(95, 54, 170)
HSLhsl(261, 52%, 44%)
HSVhsv(261, 68%, 67%)
CMYKcmyk(44.1%, 68.2%, 0%, 33.3%)
CIE-LABlab(33.93, 44.33, -55.79)
CIE-LCHlch(33.93, 71.25, 308.47°)
OKLaboklab(44.98% 0.0727 -0.1595)
OKLCHoklch(44.98% 0.175 294.5)
XYZxyz(13.2922, 7.9732, 38.8611)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F36AA #81AA36
analogous
#3647AA #5F36AA #9936AA
triadic
#5F36AA #AA5F36 #36AA5F
tetradic
#5F36AA #AA3647 #81AA36 #36AA99
square
#5F36AA #AA3647 #81AA36 #36AA99
split-complementary
#5F36AA #AA9936 #47AA36
monochromatic
#2B184D #45277C #5F36AA #7E54C9 #A183D8

Accessibility & contrast

On white

8.09
#5F36AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5F36AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F36AA
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F36AA#FFFFFF#000000##FFFFFF
##5F36AA1.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#004EA8
Tritanopia (blue-blind)
#4A526B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f36aa;
/* rgb */ color: rgb(95, 54, 170);
/* oklch */ color: oklch(45.0% 0.175 294.5);
Tailwind
colors: {
  custom: {
    50: '#9370c4',
    500: '#5f36aa',
    950: '#000000',
  },
}
SCSS
$custom: #5f36aa;
$custom-light: #9370c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f36aa",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 170
  },
  "hsl": {
    "h": 261.207,
    "s": 51.786,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44979,
    "c": 0.1753,
    "h": 294.5
  },
  "luminance": 0.07974
}

Semantic roles & 50–950 ramp

primary
#5F36AA
secondary
#A8C17B
accent
#DB4DA9
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F36AA

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

Preview Lab → · Contrast checker → · Palette generator →

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