#5D268F#5D268F

#5D268F is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.164 H 303.7°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#5D268F
RGBrgb(93, 38, 143)
HSLhsl(271, 58%, 35%)
HSVhsv(271, 73%, 56%)
CMYKcmyk(35%, 73.4%, 0%, 43.9%)
CIE-LABlab(28.63, 44.94, -47.99)
CIE-LCHlch(28.63, 65.74, 313.12°)
OKLaboklab(40.48% 0.0911 -0.1366)
OKLCHoklch(40.48% 0.164 303.7)
XYZxyz(10.1641, 5.6966, 26.5454)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D268F #588F26
analogous
#29268F #5D268F #8F268C
triadic
#5D268F #8F5D26 #268F5D
tetradic
#5D268F #8F2926 #588F26 #268C8F
square
#5D268F #8F2926 #588F26 #268C8F
split-complementary
#5D268F #8C8F26 #268F29
monochromatic
#1E0C2E #3E195F #5D268F #7C33BF #9B5CD4

Accessibility & contrast

On white

9.82
#5D268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5D268F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D268F
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D268F#FFFFFF#000000##FFFFFF
##5D268F1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#533F58
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d268f;
/* rgb */ color: rgb(93, 38, 143);
/* oklch */ color: oklch(40.5% 0.164 303.7);
Tailwind
colors: {
  custom: {
    50: '#9066b1',
    500: '#5d268f',
    950: '#000000',
  },
}
SCSS
$custom: #5d268f;
$custom-light: #9066b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d268f",
  "rgb": {
    "r": 93,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 271.429,
    "s": 58.011,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40479,
    "c": 0.16419,
    "h": 303.7
  },
  "luminance": 0.05697
}

Semantic roles & 50–950 ramp

primary
#5D268F
secondary
#86B958
accent
#E14790
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D268F

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

Preview Lab → · Contrast checker → · Palette generator →

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