#5F37AE#5F37AE

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

Color values

HEX#5F37AE
RGBrgb(95, 55, 174)
HSLhsl(260, 52%, 45%)
HSVhsv(260, 68%, 68%)
CMYKcmyk(45.4%, 68.4%, 0%, 31.8%)
CIE-LABlab(34.44, 44.90, -57.34)
CIE-LCHlch(34.44, 72.83, 308.06°)
OKLaboklab(45.45% 0.0711 -0.1641)
OKLCHoklch(45.45% 0.179 293.4)
XYZxyz(13.7234, 8.2209, 40.8999)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F37AE #86AE37
analogous
#374BAE #5F37AE #9A37AE
triadic
#5F37AE #AE5F37 #37AE5F
tetradic
#5F37AE #AE374B #86AE37 #37AE9A
square
#5F37AE #AE374B #86AE37 #37AE9A
split-complementary
#5F37AE #AE9A37 #4BAE37
monochromatic
#2C1A51 #46287F #5F37AE #7E58CA #A286D9

Accessibility & contrast

On white

7.94
#5F37AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5F37AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F37AE
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F37AE#FFFFFF#000000##FFFFFF
##5F37AE1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f37ae;
/* rgb */ color: rgb(95, 55, 174);
/* oklch */ color: oklch(45.4% 0.179 293.4);
Tailwind
colors: {
  custom: {
    50: '#9371c7',
    500: '#5f37ae',
    950: '#000000',
  },
}
SCSS
$custom: #5f37ae;
$custom-light: #9371c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f37ae",
  "rgb": {
    "r": 95,
    "g": 55,
    "b": 174
  },
  "hsl": {
    "h": 260.168,
    "s": 51.965,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45445,
    "c": 0.17882,
    "h": 293.4
  },
  "luminance": 0.08221
}

Semantic roles & 50–950 ramp

primary
#5F37AE
secondary
#ACC37E
accent
#DB4CAB
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F37AE

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

Preview Lab → · Contrast checker → · Palette generator →

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