#5F37B2#5F37B2

#5F37B2 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.8% C 0.184 H 292.6°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#5F37B2
RGBrgb(95, 55, 178)
HSLhsl(260, 53%, 46%)
HSVhsv(260, 69%, 70%)
CMYKcmyk(46.6%, 69.1%, 0%, 30.2%)
CIE-LABlab(34.76, 46.01, -59.20)
CIE-LCHlch(34.76, 74.98, 307.86°)
OKLaboklab(45.78% 0.0704 -0.1695)
OKLCHoklch(45.78% 0.184 292.6)
XYZxyz(14.1192, 8.3792, 42.9843)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F37B2 #8AB237
analogous
#374CB2 #5F37B2 #9C37B2
triadic
#5F37B2 #B25F37 #37B25F
tetradic
#5F37B2 #B2374C #8AB237 #37B29C
square
#5F37B2 #B2374C #8AB237 #37B29C
split-complementary
#5F37B2 #B29C37 #4CB237
monochromatic
#2D1A54 #462983 #5F37B2 #7F5ACC #A389DB

Accessibility & contrast

On white

7.85
#5F37B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5F37B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F37B2
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F37B2#FFFFFF#000000##FFFFFF
##5F37B21.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f37b2;
/* rgb */ color: rgb(95, 55, 178);
/* oklch */ color: oklch(45.8% 0.184 292.6);
Tailwind
colors: {
  custom: {
    50: '#9471ca',
    500: '#5f37b2',
    950: '#000000',
  },
}
SCSS
$custom: #5f37b2;
$custom-light: #9471ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5f37b2",
  "rgb": {
    "r": 95,
    "g": 55,
    "b": 178
  },
  "hsl": {
    "h": 259.512,
    "s": 52.79,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45776,
    "c": 0.18359,
    "h": 292.6
  },
  "luminance": 0.0838
}

Semantic roles & 50–950 ramp

primary
#5F37B2
secondary
#AEC580
accent
#DC4CAD
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F37B2

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

Preview Lab → · Contrast checker → · Palette generator →

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