#5D268D#5D268D

#5D268D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.162 H 304.4°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#5D268D
RGBrgb(93, 38, 141)
HSLhsl(272, 58%, 35%)
HSVhsv(272, 73%, 55%)
CMYKcmyk(34%, 73%, 0%, 44.7%)
CIE-LABlab(28.48, 44.44, -47.00)
CIE-LCHlch(28.48, 64.69, 313.40°)
OKLaboklab(40.32% 0.0915 -0.1337)
OKLCHoklch(40.32% 0.162 304.4)
XYZxyz(10.0139, 5.6365, 25.7545)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D268D #568D26
analogous
#2A268D #5D268D #8D2689
triadic
#5D268D #8D5D26 #268D5D
tetradic
#5D268D #8D2A26 #568D26 #26898D
square
#5D268D #8D2A26 #568D26 #26898D
split-complementary
#5D268D #898D26 #268D2A
monochromatic
#1D0C2D #3D195D #5D268D #7D33BD #9B5BD3

Accessibility & contrast

On white

9.87
#5D268D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5D268D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D268D
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D268D#FFFFFF#000000##FFFFFF
##5D268D1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#543E57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d268d;
/* rgb */ color: rgb(93, 38, 141);
/* oklch */ color: oklch(40.3% 0.162 304.4);
Tailwind
colors: {
  custom: {
    50: '#8f65af',
    500: '#5d268d',
    950: '#000000',
  },
}
SCSS
$custom: #5d268d;
$custom-light: #8f65af;
$custom-dark: #000000;
JSON
{
  "hex": "#5d268d",
  "rgb": {
    "r": 93,
    "g": 38,
    "b": 141
  },
  "hsl": {
    "h": 272.039,
    "s": 57.542,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40318,
    "c": 0.16201,
    "h": 304.4
  },
  "luminance": 0.05636
}

Semantic roles & 50–950 ramp

primary
#5D268D
secondary
#84B857
accent
#E1478F
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D268D

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

Preview Lab → · Contrast checker → · Palette generator →

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