#5D2F9C#5D2F9C

#5D2F9C is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.7% C 0.168 H 298.3°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#5D2F9C
RGBrgb(93, 47, 156)
HSLhsl(265, 54%, 40%)
HSVhsv(265, 70%, 61%)
CMYKcmyk(40.4%, 69.9%, 0%, 38.8%)
CIE-LABlab(31.25, 43.83, -51.70)
CIE-LCHlch(31.25, 67.78, 310.29°)
OKLaboklab(42.67% 0.0794 -0.1475)
OKLCHoklch(42.67% 0.168 298.3)
XYZxyz(11.5299, 6.7603, 32.1435)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2F9C #6E9C2F
analogous
#2F379C #5D2F9C #942F9C
triadic
#5D2F9C #9C5D2F #2F9C5D
tetradic
#5D2F9C #9C2F37 #6E9C2F #2F9C94
square
#5D2F9C #9C2F37 #6E9C2F #2F9C94
split-complementary
#5D2F9C #9C942F #379C2F
monochromatic
#25133E #41216D #5D2F9C #7A42C6 #9B71D4

Accessibility & contrast

On white

8.93
#5D2F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5D2F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2F9C
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2F9C#FFFFFF#000000##FFFFFF
##5D2F9C1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#00489A
Tritanopia (blue-blind)
#4E4962
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d2f9c;
/* rgb */ color: rgb(93, 47, 156);
/* oklch */ color: oklch(42.7% 0.168 298.3);
Tailwind
colors: {
  custom: {
    50: '#906bba',
    500: '#5d2f9c',
    950: '#000000',
  },
}
SCSS
$custom: #5d2f9c;
$custom-light: #906bba;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2f9c",
  "rgb": {
    "r": 93,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 265.321,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42668,
    "c": 0.16753,
    "h": 298.3
  },
  "luminance": 0.0676
}

Semantic roles & 50–950 ramp

primary
#5D2F9C
secondary
#9ABC6B
accent
#DD4B9F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D2F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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