#5D268B#5D268B

#5D268B is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.160 H 305.1°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#5D268B
RGBrgb(93, 38, 139)
HSLhsl(273, 57%, 35%)
HSVhsv(273, 73%, 55%)
CMYKcmyk(33.1%, 72.7%, 0%, 45.5%)
CIE-LABlab(28.32, 43.95, -46.02)
CIE-LCHlch(28.32, 63.63, 313.68°)
OKLaboklab(40.16% 0.0918 -0.1308)
OKLCHoklch(40.16% 0.16 305.1)
XYZxyz(9.8665, 5.5775, 24.9779)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D268B #548B26
analogous
#2A268B #5D268B #8B2687
triadic
#5D268B #8B5D26 #268B5D
tetradic
#5D268B #8B2A26 #548B26 #26878B
square
#5D268B #8B2A26 #548B26 #26878B
split-complementary
#5D268B #878B26 #268B2A
monochromatic
#1D0C2B #3D195B #5D268B #7D33BB #9B5AD2

Accessibility & contrast

On white

9.93
#5D268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5D268B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D268B
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D268B#FFFFFF#000000##FFFFFF
##5D268B1.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#004389
Tritanopia (blue-blind)
#553E56
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d268b;
/* rgb */ color: rgb(93, 38, 139);
/* oklch */ color: oklch(40.2% 0.160 305.1);
Tailwind
colors: {
  custom: {
    50: '#8f65ae',
    500: '#5d268b',
    950: '#000000',
  },
}
SCSS
$custom: #5d268b;
$custom-light: #8f65ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d268b",
  "rgb": {
    "r": 93,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 272.673,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40159,
    "c": 0.15981,
    "h": 305.1
  },
  "luminance": 0.05577
}

Semantic roles & 50–950 ramp

primary
#5D268B
secondary
#82B756
accent
#E0478D
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D268B

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

Preview Lab → · Contrast checker → · Palette generator →

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