#5F36AB#5F36AB

#5F36AB is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.1% C 0.176 H 294.3°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#5F36AB
RGBrgb(95, 54, 171)
HSLhsl(261, 52%, 44%)
HSVhsv(261, 68%, 67%)
CMYKcmyk(44.4%, 68.4%, 0%, 32.9%)
CIE-LABlab(34.01, 44.60, -56.26)
CIE-LCHlch(34.01, 71.79, 308.41°)
OKLaboklab(45.06% 0.0726 -0.1609)
OKLCHoklch(45.06% 0.177 294.3)
XYZxyz(13.3872, 8.0111, 39.3611)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F36AB #82AB36
analogous
#3647AB #5F36AB #9A36AB
triadic
#5F36AB #AB5F36 #36AB5F
tetradic
#5F36AB #AB3647 #82AB36 #36AB9A
square
#5F36AB #AB3647 #82AB36 #36AB9A
split-complementary
#5F36AB #AB9A36 #47AB36
monochromatic
#2B194E #45277C #5F36AB #7E55C9 #A183D8

Accessibility & contrast

On white

8.07
#5F36AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5F36AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F36AB
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F36AB#FFFFFF#000000##FFFFFF
##5F36AB1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#004EA9
Tritanopia (blue-blind)
#4A536C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f36ab;
/* rgb */ color: rgb(95, 54, 171);
/* oklch */ color: oklch(45.1% 0.176 294.3);
Tailwind
colors: {
  custom: {
    50: '#9370c5',
    500: '#5f36ab',
    950: '#000000',
  },
}
SCSS
$custom: #5f36ab;
$custom-light: #9370c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f36ab",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 171
  },
  "hsl": {
    "h": 261.026,
    "s": 52,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45061,
    "c": 0.1765,
    "h": 294.3
  },
  "luminance": 0.08012
}

Semantic roles & 50–950 ramp

primary
#5F36AB
secondary
#A9C27B
accent
#DB4CA9
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F36AB

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

Preview Lab → · Contrast checker → · Palette generator →

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