#5D37AF#5D37AF

#5D37AF is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.3% C 0.180 H 292.2°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#5D37AF
RGBrgb(93, 55, 175)
HSLhsl(259, 52%, 45%)
HSVhsv(259, 69%, 69%)
CMYKcmyk(46.9%, 68.6%, 0%, 31.4%)
CIE-LABlab(34.30, 44.80, -58.17)
CIE-LCHlch(34.30, 73.42, 307.60°)
OKLaboklab(45.32% 0.068 -0.1666)
OKLCHoklch(45.32% 0.18 292.2)
XYZxyz(13.6161, 8.1542, 41.4056)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D37AF #89AF37
analogous
#374DAF #5D37AF #9937AF
triadic
#5D37AF #AF5D37 #37AF5D
tetradic
#5D37AF #AF374D #89AF37 #37AF99
square
#5D37AF #AF374D #89AF37 #37AF99
split-complementary
#5D37AF #AF9937 #4DAF37
monochromatic
#2C1A52 #442880 #5D37AF #7D59CB #A187D9

Accessibility & contrast

On white

7.98
#5D37AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D37AF
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D37AF#FFFFFF#000000##FFFFFF
##5D37AF1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#004EAD
Tritanopia (blue-blind)
#44556E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5d37af;
/* rgb */ color: rgb(93, 55, 175);
/* oklch */ color: oklch(45.3% 0.180 292.2);
Tailwind
colors: {
  custom: {
    50: '#9271c8',
    500: '#5d37af',
    950: '#000000',
  },
}
SCSS
$custom: #5d37af;
$custom-light: #9271c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d37af",
  "rgb": {
    "r": 93,
    "g": 55,
    "b": 175
  },
  "hsl": {
    "h": 259,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45322,
    "c": 0.17995,
    "h": 292.2
  },
  "luminance": 0.08155
}

Semantic roles & 50–950 ramp

primary
#5D37AF
secondary
#AEC37F
accent
#DC4CAE
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5D37AF

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

Preview Lab → · Contrast checker → · Palette generator →

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