#5D268E#5D268E

#5D268E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.163 H 304.0°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#5D268E
RGBrgb(93, 38, 142)
HSLhsl(272, 58%, 35%)
HSVhsv(272, 73%, 56%)
CMYKcmyk(34.5%, 73.2%, 0%, 44.3%)
CIE-LABlab(28.55, 44.69, -47.50)
CIE-LCHlch(28.55, 65.22, 313.26°)
OKLaboklab(40.4% 0.0913 -0.1351)
OKLCHoklch(40.4% 0.163 304)
XYZxyz(10.0887, 5.6664, 26.1482)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D268E #578E26
analogous
#29268E #5D268E #8E268B
triadic
#5D268E #8E5D26 #268E5D
tetradic
#5D268E #8E2926 #578E26 #268B8E
square
#5D268E #8E2926 #578E26 #268B8E
split-complementary
#5D268E #8B8E26 #268E29
monochromatic
#1E0C2D #3D195E #5D268E #7D33BE #9B5BD3

Accessibility & contrast

On white

9.84
#5D268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D268E
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D268E#FFFFFF#000000##FFFFFF
##5D268E1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#543F57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d268e;
/* rgb */ color: rgb(93, 38, 142);
/* oklch */ color: oklch(40.4% 0.163 304.0);
Tailwind
colors: {
  custom: {
    50: '#9065b0',
    500: '#5d268e',
    950: '#000000',
  },
}
SCSS
$custom: #5d268e;
$custom-light: #9065b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d268e",
  "rgb": {
    "r": 93,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 271.731,
    "s": 57.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40399,
    "c": 0.1631,
    "h": 304
  },
  "luminance": 0.05666
}

Semantic roles & 50–950 ramp

primary
#5D268E
secondary
#85B858
accent
#E1478F
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D268E

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

Preview Lab → · Contrast checker → · Palette generator →

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