#5F36AF#5F36AF

#5F36AF is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.4% C 0.181 H 293.4°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#5F36AF
RGBrgb(95, 54, 175)
HSLhsl(260, 53%, 45%)
HSVhsv(260, 69%, 69%)
CMYKcmyk(45.7%, 69.1%, 0%, 31.4%)
CIE-LABlab(34.33, 45.71, -58.12)
CIE-LCHlch(34.33, 73.94, 308.18°)
OKLaboklab(45.39% 0.0719 -0.1664)
OKLCHoklch(45.39% 0.181 293.4)
XYZxyz(13.7742, 8.1660, 41.3996)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F36AF #86AF36
analogous
#3649AF #5F36AF #9C36AF
triadic
#5F36AF #AF5F36 #36AF5F
tetradic
#5F36AF #AF3649 #86AF36 #36AF9C
square
#5F36AF #AF3649 #86AF36 #36AF9C
split-complementary
#5F36AF #AF9C36 #49AF36
monochromatic
#2C1951 #462880 #5F36AF #7E57CB #A286DA

Accessibility & contrast

On white

7.98
#5F36AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5F36AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F36AF
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F36AF#FFFFFF#000000##FFFFFF
##5F36AF1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#004FAD
Tritanopia (blue-blind)
#48546E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f36af;
/* rgb */ color: rgb(95, 54, 175);
/* oklch */ color: oklch(45.4% 0.181 293.4);
Tailwind
colors: {
  custom: {
    50: '#9370c8',
    500: '#5f36af',
    950: '#000000',
  },
}
SCSS
$custom: #5f36af;
$custom-light: #9370c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f36af",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 175
  },
  "hsl": {
    "h": 260.331,
    "s": 52.838,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4539,
    "c": 0.18126,
    "h": 293.4
  },
  "luminance": 0.08166
}

Semantic roles & 50–950 ramp

primary
#5F36AF
secondary
#ACC37D
accent
#DC4CAB
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F36AF

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

Preview Lab → · Contrast checker → · Palette generator →

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