#5D2D98#5D2D98

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

Color values

HEX#5D2D98
RGBrgb(93, 45, 152)
HSLhsl(267, 54%, 39%)
HSVhsv(267, 70%, 60%)
CMYKcmyk(38.8%, 70.4%, 0%, 40.4%)
CIE-LABlab(30.57, 43.80, -50.37)
CIE-LCHlch(30.57, 66.75, 311.01°)
OKLaboklab(42.08% 0.0822 -0.1436)
OKLCHoklch(42.08% 0.165 299.8)
XYZxyz(11.1187, 6.4708, 30.3629)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2D98 #68982D
analogous
#2D3298 #5D2D98 #922D98
triadic
#5D2D98 #985D2D #2D985D
tetradic
#5D2D98 #982D32 #68982D #2D9892
square
#5D2D98 #982D32 #68982D #2D9892
split-complementary
#5D2D98 #98922D #32982D
monochromatic
#23113A #401F69 #5D2D98 #7A3DC5 #9A6CD3

Accessibility & contrast

On white

9.15
#5D2D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5D2D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2D98
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2D98#FFFFFF#000000##FFFFFF
##5D2D981.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#004796
Tritanopia (blue-blind)
#50475F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5d2d98;
/* rgb */ color: rgb(93, 45, 152);
/* oklch */ color: oklch(42.1% 0.165 299.8);
Tailwind
colors: {
  custom: {
    50: '#906ab7',
    500: '#5d2d98',
    950: '#000000',
  },
}
SCSS
$custom: #5d2d98;
$custom-light: #906ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2d98",
  "rgb": {
    "r": 93,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 266.916,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4208,
    "c": 0.16547,
    "h": 299.8
  },
  "luminance": 0.06471
}

Semantic roles & 50–950 ramp

primary
#5D2D98
secondary
#95BA66
accent
#DE4A9B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5D2D98

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

Preview Lab → · Contrast checker → · Palette generator →

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