#5D2BA7#5D2BA7

#5D2BA7 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.1% C 0.185 H 296.0°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#5D2BA7
RGBrgb(93, 43, 167)
HSLhsl(264, 59%, 41%)
HSVhsv(264, 74%, 65%)
CMYKcmyk(44.3%, 74.3%, 0%, 34.5%)
CIE-LABlab(31.45, 48.73, -58.03)
CIE-LCHlch(31.45, 75.78, 310.02°)
OKLaboklab(43.09% 0.0811 -0.1661)
OKLCHoklch(43.09% 0.185 296)
XYZxyz(12.3513, 6.8446, 37.2221)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2BA7 #75A72B
analogous
#2B37A7 #5D2BA7 #9B2BA7
triadic
#5D2BA7 #A75D2B #2BA75D
tetradic
#5D2BA7 #A72B37 #75A72B #2BA79B
square
#5D2BA7 #A72B37 #75A72B #2BA79B
split-complementary
#5D2BA7 #A79B2B #37A72B
monochromatic
#271246 #421E76 #5D2BA7 #7A41CE #9C72DB

Accessibility & contrast

On white

8.86
#5D2BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5D2BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2BA7
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2BA7#FFFFFF#000000##FFFFFF
##5D2BA71.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0048A5
Tritanopia (blue-blind)
#494B67
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d2ba7;
/* rgb */ color: rgb(93, 43, 167);
/* oklch */ color: oklch(43.1% 0.185 296.0);
Tailwind
colors: {
  custom: {
    50: '#9269c2',
    500: '#5d2ba7',
    950: '#000000',
  },
}
SCSS
$custom: #5d2ba7;
$custom-light: #9269c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2ba7",
  "rgb": {
    "r": 93,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 264.194,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43088,
    "c": 0.18489,
    "h": 296
  },
  "luminance": 0.06845
}

Semantic roles & 50–950 ramp

primary
#5D2BA7
secondary
#9FC26C
accent
#E246A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5D2BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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