#5F37C3#5F37C3

#5F37C3 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.2% C 0.204 H 289.3°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#5F37C3
RGBrgb(95, 55, 195)
HSLhsl(257, 56%, 49%)
HSVhsv(257, 72%, 76%)
CMYKcmyk(51.3%, 71.8%, 0%, 23.5%)
CIE-LABlab(36.19, 50.76, -66.89)
CIE-LCHlch(36.19, 83.97, 307.19°)
OKLaboklab(47.23% 0.0672 -0.1921)
OKLCHoklch(47.23% 0.204 289.3)
XYZxyz(15.9330, 9.1047, 52.5370)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F37C3 #9BC337
analogous
#3755C3 #5F37C3 #A537C3
triadic
#5F37C3 #C35F37 #37C35F
tetradic
#5F37C3 #C33755 #9BC337 #37C3A5
square
#5F37C3 #C33755 #9BC337 #37C3A5
split-complementary
#5F37C3 #C3A537 #55C337
monochromatic
#301C64 #482A93 #5F37C3 #8464D3 #AA94E1

Accessibility & contrast

On white

7.44
#5F37C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5F37C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F37C3
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F37C3#FFFFFF#000000##FFFFFF
##5F37C31.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C7
Deuteranopia (green-blind)
#0052C0
Tritanopia (blue-blind)
#3B5C79
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f37c3;
/* rgb */ color: rgb(95, 55, 195);
/* oklch */ color: oklch(47.2% 0.204 289.3);
Tailwind
colors: {
  custom: {
    50: '#9671d6',
    500: '#5f37c3',
    950: '#000000',
  },
}
SCSS
$custom: #5f37c3;
$custom-light: #9671d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f37c3",
  "rgb": {
    "r": 95,
    "g": 55,
    "b": 195
  },
  "hsl": {
    "h": 257.143,
    "s": 56,
    "l": 49.02
  },
  "oklch": {
    "l": 0.47231,
    "c": 0.20353,
    "h": 289.3
  },
  "luminance": 0.09105
}

Semantic roles & 50–950 ramp

primary
#5F37C3
secondary
#B9CC8A
accent
#DF49B4
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F37C3

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

Preview Lab → · Contrast checker → · Palette generator →

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