#5D2F8D#5D2F8D

#5D2F8D is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.5% C 0.150 H 302.9°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#5D2F8D
RGBrgb(93, 47, 141)
HSLhsl(269, 50%, 37%)
HSVhsv(269, 67%, 55%)
CMYKcmyk(34%, 66.7%, 0%, 44.7%)
CIE-LABlab(30.12, 39.89, -44.35)
CIE-LCHlch(30.12, 59.65, 311.97°)
OKLaboklab(41.49% 0.0813 -0.1259)
OKLCHoklch(41.49% 0.15 302.9)
XYZxyz(10.3373, 6.2833, 25.8623)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2F8D #5F8D2F
analogous
#2F308D #5D2F8D #8C2F8D
triadic
#5D2F8D #8D5D2F #2F8D5D
tetradic
#5D2F8D #8D2F30 #5F8D2F #2F8D8C
square
#5D2F8D #8D2F30 #5F8D2F #2F8D8C
split-complementary
#5D2F8D #8D8C2F #308D2F
monochromatic
#201031 #3F205F #5D2F8D #7B3EBB #9A69CD

Accessibility & contrast

On white

9.31
#5D2F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5D2F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2F8D
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2F8D#FFFFFF#000000##FFFFFF
##5D2F8D1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#0D478B
Tritanopia (blue-blind)
#54445A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d2f8d;
/* rgb */ color: rgb(93, 47, 141);
/* oklch */ color: oklch(41.5% 0.150 302.9);
Tailwind
colors: {
  custom: {
    50: '#8f6baf',
    500: '#5d2f8d',
    950: '#000000',
  },
}
SCSS
$custom: #5d2f8d;
$custom-light: #8f6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2f8d",
  "rgb": {
    "r": 93,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 269.362,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41492,
    "c": 0.14991,
    "h": 302.9
  },
  "luminance": 0.06283
}

Semantic roles & 50–950 ramp

primary
#5D2F8D
secondary
#8DB464
accent
#DA4E95
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5D2F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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