#5D2FB2#5D2FB2

#5D2FB2 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.5% C 0.193 H 292.9°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#5D2FB2
RGBrgb(93, 47, 178)
HSLhsl(261, 58%, 44%)
HSVhsv(261, 74%, 70%)
CMYKcmyk(47.8%, 73.6%, 0%, 30.2%)
CIE-LABlab(33.08, 49.74, -61.95)
CIE-LCHlch(33.08, 79.45, 308.76°)
OKLaboklab(44.53% 0.075 -0.1777)
OKLCHoklch(44.53% 0.193 292.9)
XYZxyz(13.5644, 7.5741, 42.8581)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2FB2 #84B22F
analogous
#2F43B2 #5D2FB2 #9F2FB2
triadic
#5D2FB2 #B25D2F #2FB25D
tetradic
#5D2FB2 #B22F43 #84B22F #2FB29F
square
#5D2FB2 #B22F43 #84B22F #2FB29F
split-complementary
#5D2FB2 #B29F2F #43B22F
monochromatic
#2A1551 #442282 #5D2FB2 #7C4ED0 #A07EDD

Accessibility & contrast

On white

8.35
#5D2FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5D2FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2FB2
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2FB2#FFFFFF#000000##FFFFFF
##5D2FB21.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#004BAF
Tritanopia (blue-blind)
#43526E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5d2fb2;
/* rgb */ color: rgb(93, 47, 178);
/* oklch */ color: oklch(44.5% 0.193 292.9);
Tailwind
colors: {
  custom: {
    50: '#936cca',
    500: '#5d2fb2',
    950: '#000000',
  },
}
SCSS
$custom: #5d2fb2;
$custom-light: #936cca;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2fb2",
  "rgb": {
    "r": 93,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 261.069,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4453,
    "c": 0.19284,
    "h": 292.9
  },
  "luminance": 0.07575
}

Semantic roles & 50–950 ramp

primary
#5D2FB2
secondary
#AAC677
accent
#E146AB
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D2FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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