#5C267B#5C267B

#5C267B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.142 H 310.6°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#5C267B
RGBrgb(92, 38, 123)
HSLhsl(278, 53%, 32%)
HSVhsv(278, 69%, 48%)
CMYKcmyk(25.2%, 69.1%, 0%, 51.8%)
CIE-LABlab(26.99, 39.85, -38.14)
CIE-LCHlch(26.99, 55.16, 316.26°)
OKLaboklab(38.81% 0.0925 -0.1077)
OKLCHoklch(38.81% 0.142 310.6)
XYZxyz(8.6812, 5.0918, 19.2605)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C267B #457B26
analogous
#32267B #5C267B #7B2670
triadic
#5C267B #7B5C26 #267B5C
tetradic
#5C267B #7B3226 #457B26 #26707B
square
#5C267B #7B3226 #457B26 #26707B
split-complementary
#5C267B #707B26 #267B32
monochromatic
#16091D #39184C #5C267B #7F34AA #9E52CA

Accessibility & contrast

On white

10.40
#5C267B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C267B
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C267B#FFFFFF#000000##FFFFFF
##5C267B1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c267b;
/* rgb */ color: rgb(92, 38, 123);
/* oklch */ color: oklch(38.8% 0.142 310.6);
Tailwind
colors: {
  custom: {
    50: '#8d65a2',
    500: '#5c267b',
    950: '#000000',
  },
}
SCSS
$custom: #5c267b;
$custom-light: #8d65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c267b",
  "rgb": {
    "r": 92,
    "g": 38,
    "b": 123
  },
  "hsl": {
    "h": 278.118,
    "s": 52.795,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38806,
    "c": 0.14193,
    "h": 310.6
  },
  "luminance": 0.05092
}

Semantic roles & 50–950 ramp

primary
#5C267B
secondary
#72AD50
accent
#DC4C80
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0D060F
muted
#7D7A7F

Preview Lab

Preview with #5C267B

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

Preview Lab → · Contrast checker → · Palette generator →

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