#5F37C8#5F37C8

#5F37C8 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.7% C 0.209 H 288.4°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#5F37C8
RGBrgb(95, 55, 200)
HSLhsl(257, 57%, 50%)
HSVhsv(257, 73%, 78%)
CMYKcmyk(52.5%, 72.5%, 0%, 21.6%)
CIE-LABlab(36.62, 52.15, -69.10)
CIE-LCHlch(36.62, 86.57, 307.04°)
OKLaboklab(47.67% 0.0661 -0.1986)
OKLCHoklch(47.67% 0.209 288.4)
XYZxyz(16.5078, 9.3346, 55.5643)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F37C8 #A0C837
analogous
#3757C8 #5F37C8 #A837C8
triadic
#5F37C8 #C85F37 #37C85F
tetradic
#5F37C8 #C83757 #A0C837 #37C8A8
square
#5F37C8 #C83757 #A0C837 #37C8A8
split-complementary
#5F37C8 #C8A837 #57C837
monochromatic
#311D68 #482A98 #5F37C8 #8567D5 #AC97E2

Accessibility & contrast

On white

7.32
#5F37C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5F37C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F37C8
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F37C8#FFFFFF#000000##FFFFFF
##5F37C81.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CC
Deuteranopia (green-blind)
#0052C5
Tritanopia (blue-blind)
#365E7C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5f37c8;
/* rgb */ color: rgb(95, 55, 200);
/* oklch */ color: oklch(47.7% 0.209 288.4);
Tailwind
colors: {
  custom: {
    50: '#9772da',
    500: '#5f37c8',
    950: '#000000',
  },
}
SCSS
$custom: #5f37c8;
$custom-light: #9772da;
$custom-dark: #000000;
JSON
{
  "hex": "#5f37c8",
  "rgb": {
    "r": 95,
    "g": 55,
    "b": 200
  },
  "hsl": {
    "h": 256.552,
    "s": 56.863,
    "l": 50
  },
  "oklch": {
    "l": 0.47673,
    "c": 0.2093,
    "h": 288.4
  },
  "luminance": 0.09335
}

Semantic roles & 50–950 ramp

primary
#5F37C8
secondary
#BCCE8D
accent
#E048B6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F37C8

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

Preview Lab → · Contrast checker → · Palette generator →

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