#5F37AC#5F37AC

#5F37AC is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.3% C 0.176 H 293.9°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#5F37AC
RGBrgb(95, 55, 172)
HSLhsl(261, 52%, 45%)
HSVhsv(261, 68%, 67%)
CMYKcmyk(44.8%, 68%, 0%, 32.5%)
CIE-LABlab(34.28, 44.34, -56.41)
CIE-LCHlch(34.28, 71.75, 308.17°)
OKLaboklab(45.28% 0.0714 -0.1613)
OKLCHoklch(45.28% 0.176 293.9)
XYZxyz(13.5299, 8.1435, 39.8807)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F37AC #84AC37
analogous
#3749AC #5F37AC #9A37AC
triadic
#5F37AC #AC5F37 #37AC5F
tetradic
#5F37AC #AC3749 #84AC37 #37AC9A
square
#5F37AC #AC3749 #84AC37 #37AC9A
split-complementary
#5F37AC #AC9A37 #49AC37
monochromatic
#2C194F #45287E #5F37AC #7E57C9 #A285D8

Accessibility & contrast

On white

7.99
#5F37AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F37AC
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F37AC#FFFFFF#000000##FFFFFF
##5F37AC1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B0
Deuteranopia (green-blind)
#004FAA
Tritanopia (blue-blind)
#49536D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f37ac;
/* rgb */ color: rgb(95, 55, 172);
/* oklch */ color: oklch(45.3% 0.176 293.9);
Tailwind
colors: {
  custom: {
    50: '#9371c6',
    500: '#5f37ac',
    950: '#000000',
  },
}
SCSS
$custom: #5f37ac;
$custom-light: #9371c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f37ac",
  "rgb": {
    "r": 95,
    "g": 55,
    "b": 172
  },
  "hsl": {
    "h": 260.513,
    "s": 51.542,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45282,
    "c": 0.17642,
    "h": 293.9
  },
  "luminance": 0.08144
}

Semantic roles & 50–950 ramp

primary
#5F37AC
secondary
#AAC27D
accent
#DB4DAA
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F37AC

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

Preview Lab → · Contrast checker → · Palette generator →

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