#5D2E95#5D2E95

#5D2E95 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.0% C 0.161 H 300.5°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#5D2E95
RGBrgb(93, 46, 149)
HSLhsl(267, 53%, 38%)
HSVhsv(267, 69%, 58%)
CMYKcmyk(37.6%, 69.1%, 0%, 41.6%)
CIE-LABlab(30.52, 42.50, -48.61)
CIE-LCHlch(30.52, 64.57, 311.16°)
OKLaboklab(41.97% 0.0815 -0.1385)
OKLCHoklch(41.97% 0.161 300.5)
XYZxyz(10.9147, 6.4510, 29.0981)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2E95 #66952E
analogous
#2E3295 #5D2E95 #902E95
triadic
#5D2E95 #955D2E #2E955D
tetradic
#5D2E95 #952E32 #66952E #2E9590
square
#5D2E95 #952E32 #66952E #2E9590
split-complementary
#5D2E95 #95902E #32952E
monochromatic
#231137 #402066 #5D2E95 #7A3DC3 #9A6CD2

Accessibility & contrast

On white

9.17
#5D2E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D2E95
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2E95#FFFFFF#000000##FFFFFF
##5D2E951.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004798
Deuteranopia (green-blind)
#004793
Tritanopia (blue-blind)
#51465E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5d2e95;
/* rgb */ color: rgb(93, 46, 149);
/* oklch */ color: oklch(42.0% 0.161 300.5);
Tailwind
colors: {
  custom: {
    50: '#906ab5',
    500: '#5d2e95',
    950: '#000000',
  },
}
SCSS
$custom: #5d2e95;
$custom-light: #906ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2e95",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 149
  },
  "hsl": {
    "h": 267.379,
    "s": 52.821,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41973,
    "c": 0.16069,
    "h": 300.5
  },
  "luminance": 0.06451
}

Semantic roles & 50–950 ramp

primary
#5D2E95
secondary
#93B966
accent
#DC4C9A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5D2E95

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

Preview Lab → · Contrast checker → · Palette generator →

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