#5D268A#5D268A

#5D268A is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.159 H 305.4°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#5D268A
RGBrgb(93, 38, 138)
HSLhsl(273, 57%, 35%)
HSVhsv(273, 72%, 54%)
CMYKcmyk(32.6%, 72.5%, 0%, 45.9%)
CIE-LABlab(28.24, 43.70, -45.52)
CIE-LCHlch(28.24, 63.11, 313.83°)
OKLaboklab(40.08% 0.092 -0.1293)
OKLCHoklch(40.08% 0.159 305.4)
XYZxyz(9.7937, 5.5484, 24.5948)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D268A #538A26
analogous
#2B268A #5D268A #8A2685
triadic
#5D268A #8A5D26 #268A5D
tetradic
#5D268A #8A2B26 #538A26 #26858A
square
#5D268A #8A2B26 #538A26 #26858A
split-complementary
#5D268A #858A26 #268A2B
monochromatic
#1C0C2A #3D195A #5D268A #7D33BA #9B59D1

Accessibility & contrast

On white

9.95
#5D268A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5D268A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D268A
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D268A#FFFFFF#000000##FFFFFF
##5D268A1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#004388
Tritanopia (blue-blind)
#553D55
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d268a;
/* rgb */ color: rgb(93, 38, 138);
/* oklch */ color: oklch(40.1% 0.159 305.4);
Tailwind
colors: {
  custom: {
    50: '#8f65ad',
    500: '#5d268a',
    950: '#000000',
  },
}
SCSS
$custom: #5d268a;
$custom-light: #8f65ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5d268a",
  "rgb": {
    "r": 93,
    "g": 38,
    "b": 138
  },
  "hsl": {
    "h": 273,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40079,
    "c": 0.15873,
    "h": 305.4
  },
  "luminance": 0.05548
}

Semantic roles & 50–950 ramp

primary
#5D268A
secondary
#81B656
accent
#E0488C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D268A

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

Preview Lab → · Contrast checker → · Palette generator →

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