#5D2895#5D2895

#5D2895 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.168 H 301.5°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#5D2895
RGBrgb(93, 40, 149)
HSLhsl(269, 58%, 37%)
HSVhsv(269, 73%, 58%)
CMYKcmyk(37.6%, 73.2%, 0%, 41.6%)
CIE-LABlab(29.45, 45.50, -50.36)
CIE-LCHlch(29.45, 67.87, 312.10°)
OKLaboklab(41.21% 0.0879 -0.1436)
OKLCHoklch(41.21% 0.168 301.5)
XYZxyz(10.6965, 6.0146, 29.0253)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2895 #609528
analogous
#282A95 #5D2895 #942895
triadic
#5D2895 #955D28 #28955D
tetradic
#5D2895 #95282A #609528 #289594
square
#5D2895 #95282A #609528 #289594
split-complementary
#5D2895 #959428 #2A9528
monochromatic
#210E35 #3F1B65 #5D2895 #7B35C5 #9A62D5

Accessibility & contrast

On white

9.53
#5D2895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5D2895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2895
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2895#FFFFFF#000000##FFFFFF
##5D28951.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#004593
Tritanopia (blue-blind)
#51435C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d2895;
/* rgb */ color: rgb(93, 40, 149);
/* oklch */ color: oklch(41.2% 0.168 301.5);
Tailwind
colors: {
  custom: {
    50: '#9067b5',
    500: '#5d2895',
    950: '#000000',
  },
}
SCSS
$custom: #5d2895;
$custom-light: #9067b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2895",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 269.174,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41208,
    "c": 0.16835,
    "h": 301.5
  },
  "luminance": 0.06015
}

Semantic roles & 50–950 ramp

primary
#5D2895
secondary
#8EBB5E
accent
#E14796
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2895

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

Preview Lab → · Contrast checker → · Palette generator →

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