#5D28A5#5D28A5

#5D28A5 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.186 H 297.0°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#5D28A5
RGBrgb(93, 40, 165)
HSLhsl(265, 61%, 40%)
HSVhsv(265, 76%, 65%)
CMYKcmyk(43.6%, 75.8%, 0%, 35.3%)
CIE-LABlab(30.79, 49.60, -57.91)
CIE-LCHlch(30.79, 76.25, 310.58°)
OKLaboklab(42.57% 0.0843 -0.1658)
OKLCHoklch(42.57% 0.186 297)
XYZxyz(12.0627, 6.5611, 36.2209)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D28A5 #70A528
analogous
#2831A5 #5D28A5 #9C28A5
triadic
#5D28A5 #A55D28 #28A55D
tetradic
#5D28A5 #A52831 #70A528 #28A59C
square
#5D28A5 #A52831 #70A528 #28A59C
split-complementary
#5D28A5 #A59C28 #31A528
monochromatic
#251042 #411C74 #5D28A5 #7A3BCF #9B6CDB

Accessibility & contrast

On white

9.08
#5D28A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5D28A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D28A5
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D28A5#FFFFFF#000000##FFFFFF
##5D28A51.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0047A3
Tritanopia (blue-blind)
#4A4965
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5d28a5;
/* rgb */ color: rgb(93, 40, 165);
/* oklch */ color: oklch(42.6% 0.186 297.0);
Tailwind
colors: {
  custom: {
    50: '#9268c1',
    500: '#5d28a5',
    950: '#000000',
  },
}
SCSS
$custom: #5d28a5;
$custom-light: #9268c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d28a5",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 265.44,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42567,
    "c": 0.18598,
    "h": 297
  },
  "luminance": 0.06561
}

Semantic roles & 50–950 ramp

primary
#5D28A5
secondary
#9BC267
accent
#E444A0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D28A5

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

Preview Lab → · Contrast checker → · Palette generator →

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