#5C267D#5C267D

#5C267D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.144 H 309.8°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#5C267D
RGBrgb(92, 38, 125)
HSLhsl(277, 53%, 32%)
HSVhsv(277, 70%, 49%)
CMYKcmyk(26.4%, 69.6%, 0%, 51%)
CIE-LABlab(27.14, 40.33, -39.18)
CIE-LCHlch(27.14, 56.22, 315.83°)
OKLaboklab(38.95% 0.0923 -0.1107)
OKLCHoklch(38.95% 0.144 309.8)
XYZxyz(8.8077, 5.1424, 19.9267)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C267D #477D26
analogous
#30267D #5C267D #7D2673
triadic
#5C267D #7D5C26 #267D5C
tetradic
#5C267D #7D3026 #477D26 #26737D
square
#5C267D #7D3026 #477D26 #26737D
split-complementary
#5C267D #737D26 #267D30
monochromatic
#17091F #39184E #5C267D #7F34AC #9D53CB

Accessibility & contrast

On white

10.35
#5C267D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5C267D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C267D
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C267D#FFFFFF#000000##FFFFFF
##5C267D1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#18417B
Tritanopia (blue-blind)
#57384E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5c267d;
/* rgb */ color: rgb(92, 38, 125);
/* oklch */ color: oklch(39.0% 0.144 309.8);
Tailwind
colors: {
  custom: {
    50: '#8d65a3',
    500: '#5c267d',
    950: '#000000',
  },
}
SCSS
$custom: #5c267d;
$custom-light: #8d65a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c267d",
  "rgb": {
    "r": 92,
    "g": 38,
    "b": 125
  },
  "hsl": {
    "h": 277.241,
    "s": 53.374,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38953,
    "c": 0.14413,
    "h": 309.8
  },
  "luminance": 0.05142
}

Semantic roles & 50–950 ramp

primary
#5C267D
secondary
#74AF50
accent
#DD4B82
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D060F
muted
#7D7A7F

Preview Lab

Preview with #5C267D

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

Preview Lab → · Contrast checker → · Palette generator →

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