#5D267F#5D267F

#5D267F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.147 H 309.6°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#5D267F
RGBrgb(93, 38, 127)
HSLhsl(277, 54%, 32%)
HSVhsv(277, 70%, 50%)
CMYKcmyk(26.8%, 70.1%, 0%, 50.2%)
CIE-LABlab(27.42, 41.04, -39.97)
CIE-LCHlch(27.42, 57.28, 315.76°)
OKLaboklab(39.24% 0.0935 -0.113)
OKLCHoklch(39.24% 0.147 309.6)
XYZxyz(9.0373, 5.2459, 20.6110)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D267F #487F26
analogous
#31267F #5D267F #7F2674
triadic
#5D267F #7F5D26 #267F5D
tetradic
#5D267F #7F3126 #487F26 #26747F
square
#5D267F #7F3126 #487F26 #26747F
split-complementary
#5D267F #747F26 #267F31
monochromatic
#180A21 #3B1850 #5D267F #7F34AE #9E54CC

Accessibility & contrast

On white

10.25
#5D267F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5D267F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D267F
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D267F#FFFFFF#000000##FFFFFF
##5D267F1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#17427D
Tritanopia (blue-blind)
#58394F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d267f;
/* rgb */ color: rgb(93, 38, 127);
/* oklch */ color: oklch(39.2% 0.147 309.6);
Tailwind
colors: {
  custom: {
    50: '#8e65a5',
    500: '#5d267f',
    950: '#000000',
  },
}
SCSS
$custom: #5d267f;
$custom-light: #8e65a5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d267f",
  "rgb": {
    "r": 93,
    "g": 38,
    "b": 127
  },
  "hsl": {
    "h": 277.079,
    "s": 53.939,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39235,
    "c": 0.14666,
    "h": 309.6
  },
  "luminance": 0.05246
}

Semantic roles & 50–950 ramp

primary
#5D267F
secondary
#75B051
accent
#DD4A83
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5D267F

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

Preview Lab → · Contrast checker → · Palette generator →

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