#5D2B95#5D2B95

#5D2B95 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.165 H 301.0°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#5D2B95
RGBrgb(93, 43, 149)
HSLhsl(268, 55%, 38%)
HSVhsv(268, 71%, 58%)
CMYKcmyk(37.6%, 71.1%, 0%, 41.6%)
CIE-LABlab(29.97, 44.03, -49.51)
CIE-LCHlch(29.97, 66.25, 311.65°)
OKLaboklab(41.58% 0.0848 -0.1411)
OKLCHoklch(41.58% 0.165 301)
XYZxyz(10.8016, 6.2248, 29.0604)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2B95 #63952B
analogous
#2B2E95 #5D2B95 #922B95
triadic
#5D2B95 #955D2B #2B955D
tetradic
#5D2B95 #952B2E #63952B #2B9592
square
#5D2B95 #952B2E #63952B #2B9592
split-complementary
#5D2B95 #95922B #2E952B
monochromatic
#221036 #3F1D66 #5D2B95 #7B39C4 #9A67D3

Accessibility & contrast

On white

9.35
#5D2B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5D2B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2B95
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2B95#FFFFFF#000000##FFFFFF
##5D2B951.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004698
Deuteranopia (green-blind)
#004693
Tritanopia (blue-blind)
#51445D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d2b95;
/* rgb */ color: rgb(93, 43, 149);
/* oklch */ color: oklch(41.6% 0.165 301.0);
Tailwind
colors: {
  custom: {
    50: '#9069b5',
    500: '#5d2b95',
    950: '#000000',
  },
}
SCSS
$custom: #5d2b95;
$custom-light: #9069b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2b95",
  "rgb": {
    "r": 93,
    "g": 43,
    "b": 149
  },
  "hsl": {
    "h": 268.302,
    "s": 55.208,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4158,
    "c": 0.1646,
    "h": 301
  },
  "luminance": 0.06225
}

Semantic roles & 50–950 ramp

primary
#5D2B95
secondary
#90BA62
accent
#DF4998
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2B95

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

Preview Lab → · Contrast checker → · Palette generator →

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