#5C267C#5C267C

#5C267C is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.143 H 310.2°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#5C267C
RGBrgb(92, 38, 124)
HSLhsl(278, 53%, 32%)
HSVhsv(278, 69%, 49%)
CMYKcmyk(25.8%, 69.4%, 0%, 51.4%)
CIE-LABlab(27.07, 40.09, -38.66)
CIE-LCHlch(27.07, 55.69, 316.04°)
OKLaboklab(38.88% 0.0924 -0.1092)
OKLCHoklch(38.88% 0.143 310.2)
XYZxyz(8.7441, 5.1170, 19.5919)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C267C #467C26
analogous
#31267C #5C267C #7C2671
triadic
#5C267C #7C5C26 #267C5C
tetradic
#5C267C #7C3126 #467C26 #26717C
square
#5C267C #7C3126 #467C26 #26717C
split-complementary
#5C267C #717C26 #267C31
monochromatic
#16091E #39184D #5C267C #7F34AB #9E52CA

Accessibility & contrast

On white

10.38
#5C267C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5C267C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C267C
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C267C#FFFFFF#000000##FFFFFF
##5C267C1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7F
Deuteranopia (green-blind)
#1A417A
Tritanopia (blue-blind)
#58384D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5c267c;
/* rgb */ color: rgb(92, 38, 124);
/* oklch */ color: oklch(38.9% 0.143 310.2);
Tailwind
colors: {
  custom: {
    50: '#8d65a2',
    500: '#5c267c',
    950: '#000000',
  },
}
SCSS
$custom: #5c267c;
$custom-light: #8d65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c267c",
  "rgb": {
    "r": 92,
    "g": 38,
    "b": 124
  },
  "hsl": {
    "h": 277.674,
    "s": 53.086,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38879,
    "c": 0.14303,
    "h": 310.2
  },
  "luminance": 0.05117
}

Semantic roles & 50–950 ramp

primary
#5C267C
secondary
#73AE50
accent
#DC4B81
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D060F
muted
#7D7A7F

Preview Lab

Preview with #5C267C

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

Preview Lab → · Contrast checker → · Palette generator →

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