#5D2F95#5D2F95

#5D2F95 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.159 H 300.3°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#5D2F95
RGBrgb(93, 47, 149)
HSLhsl(267, 52%, 38%)
HSVhsv(267, 68%, 58%)
CMYKcmyk(37.6%, 68.5%, 0%, 41.6%)
CIE-LABlab(30.71, 41.98, -48.31)
CIE-LCHlch(30.71, 64.00, 310.99°)
OKLaboklab(42.11% 0.0804 -0.1376)
OKLCHoklch(42.11% 0.159 300.3)
XYZxyz(10.9542, 6.5300, 29.1112)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2F95 #67952F
analogous
#2F3495 #5D2F95 #902F95
triadic
#5D2F95 #955D2F #2F955D
tetradic
#5D2F95 #952F34 #67952F #2F9590
square
#5D2F95 #952F34 #67952F #2F9590
split-complementary
#5D2F95 #95902F #34952F
monochromatic
#231238 #402066 #5D2F95 #7A3FC2 #9A6DD1

Accessibility & contrast

On white

9.11
#5D2F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5D2F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2F95
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2F95#FFFFFF#000000##FFFFFF
##5D2F951.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004898
Deuteranopia (green-blind)
#004893
Tritanopia (blue-blind)
#51475E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5d2f95;
/* rgb */ color: rgb(93, 47, 149);
/* oklch */ color: oklch(42.1% 0.159 300.3);
Tailwind
colors: {
  custom: {
    50: '#906bb5',
    500: '#5d2f95',
    950: '#000000',
  },
}
SCSS
$custom: #5d2f95;
$custom-light: #906bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2f95",
  "rgb": {
    "r": 93,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 267.059,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42109,
    "c": 0.15934,
    "h": 300.3
  },
  "luminance": 0.0653
}

Semantic roles & 50–950 ramp

primary
#5D2F95
secondary
#94B867
accent
#DB4C9B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5D2F95

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

Preview Lab → · Contrast checker → · Palette generator →

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