#5D2F85#5D2F85

#5D2F85 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 40.9% C 0.140 H 305.7°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#5D2F85
RGBrgb(93, 47, 133)
HSLhsl(272, 48%, 35%)
HSVhsv(272, 65%, 52%)
CMYKcmyk(30.1%, 64.7%, 0%, 47.8%)
CIE-LABlab(29.55, 37.84, -40.30)
CIE-LCHlch(29.55, 55.28, 313.19°)
OKLaboklab(40.9% 0.0819 -0.114)
OKLCHoklch(40.9% 0.14 305.7)
XYZxyz(9.7634, 6.0537, 22.8399)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2F85 #57852F
analogous
#322F85 #5D2F85 #852F82
triadic
#5D2F85 #855D2F #2F855D
tetradic
#5D2F85 #85322F #57852F #2F8285
square
#5D2F85 #85322F #57852F #2F8285
split-complementary
#5D2F85 #82852F #2F8532
monochromatic
#1E0F2B #3D1F58 #5D2F85 #7D3FB2 #9B66C9

Accessibility & contrast

On white

9.50
#5D2F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5D2F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2F85
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2F85#FFFFFF#000000##FFFFFF
##5D2F851.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004488
Deuteranopia (green-blind)
#1B4683
Tritanopia (blue-blind)
#564155
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d2f85;
/* rgb */ color: rgb(93, 47, 133);
/* oklch */ color: oklch(40.9% 0.140 305.7);
Tailwind
colors: {
  custom: {
    50: '#8e6aa9',
    500: '#5d2f85',
    950: '#000000',
  },
}
SCSS
$custom: #5d2f85;
$custom-light: #8e6aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2f85",
  "rgb": {
    "r": 93,
    "g": 47,
    "b": 133
  },
  "hsl": {
    "h": 272.093,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.409,
    "c": 0.14042,
    "h": 305.7
  },
  "luminance": 0.06054
}

Semantic roles & 50–950 ramp

primary
#5D2F85
secondary
#85B060
accent
#D7508F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0710
muted
#7D7A7F

Preview Lab

Preview with #5D2F85

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

Preview Lab → · Contrast checker → · Palette generator →

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