#5F36B2#5F36B2

#5F36B2 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.6% C 0.185 H 292.7°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#5F36B2
RGBrgb(95, 54, 178)
HSLhsl(260, 53%, 45%)
HSVhsv(260, 70%, 70%)
CMYKcmyk(46.6%, 69.7%, 0%, 30.2%)
CIE-LABlab(34.57, 46.54, -59.51)
CIE-LCHlch(34.57, 75.55, 308.03°)
OKLaboklab(45.64% 0.0714 -0.1705)
OKLCHoklch(45.64% 0.185 292.7)
XYZxyz(14.0721, 8.2851, 42.9686)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F36B2 #89B236
analogous
#364BB2 #5F36B2 #9D36B2
triadic
#5F36B2 #B25F36 #36B25F
tetradic
#5F36B2 #B2364B #89B236 #36B29D
square
#5F36B2 #B2364B #89B236 #36B29D
split-complementary
#5F36B2 #B29D36 #4BB236
monochromatic
#2D1A54 #462883 #5F36B2 #7F59CD #A388DB

Accessibility & contrast

On white

7.90
#5F36B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5F36B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F36B2
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F36B2#FFFFFF#000000##FFFFFF
##5F36B21.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#465570
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f36b2;
/* rgb */ color: rgb(95, 54, 178);
/* oklch */ color: oklch(45.6% 0.185 292.7);
Tailwind
colors: {
  custom: {
    50: '#9470ca',
    500: '#5f36b2',
    950: '#000000',
  },
}
SCSS
$custom: #5f36b2;
$custom-light: #9470ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5f36b2",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 178
  },
  "hsl": {
    "h": 259.839,
    "s": 53.448,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4564,
    "c": 0.18481,
    "h": 292.7
  },
  "luminance": 0.08286
}

Semantic roles & 50–950 ramp

primary
#5F36B2
secondary
#AEC57F
accent
#DD4BAD
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F36B2

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

Preview Lab → · Contrast checker → · Palette generator →

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