#5C267A#5C267A

#5C267A is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.7% C 0.141 H 311.1°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#5C267A
RGBrgb(92, 38, 122)
HSLhsl(279, 53%, 31%)
HSVhsv(279, 69%, 48%)
CMYKcmyk(24.6%, 68.9%, 0%, 52.2%)
CIE-LABlab(26.92, 39.61, -37.62)
CIE-LCHlch(26.92, 54.63, 316.48°)
OKLaboklab(38.73% 0.0925 -0.1062)
OKLCHoklch(38.73% 0.141 311.1)
XYZxyz(8.6189, 5.0669, 18.9326)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C267A #447A26
analogous
#32267A #5C267A #7A266E
triadic
#5C267A #7A5C26 #267A5C
tetradic
#5C267A #7A3226 #447A26 #266E7A
square
#5C267A #7A3226 #447A26 #266E7A
split-complementary
#5C267A #6E7A26 #267A32
monochromatic
#16091D #39174B #5C267A #7F35A9 #9E51C9

Accessibility & contrast

On white

10.43
#5C267A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5C267A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C267A
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C267A#FFFFFF#000000##FFFFFF
##5C267A1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7D
Deuteranopia (green-blind)
#1C4178
Tritanopia (blue-blind)
#58374C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5c267a;
/* rgb */ color: rgb(92, 38, 122);
/* oklch */ color: oklch(38.7% 0.141 311.1);
Tailwind
colors: {
  custom: {
    50: '#8d65a1',
    500: '#5c267a',
    950: '#000000',
  },
}
SCSS
$custom: #5c267a;
$custom-light: #8d65a1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c267a",
  "rgb": {
    "r": 92,
    "g": 38,
    "b": 122
  },
  "hsl": {
    "h": 278.571,
    "s": 52.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38733,
    "c": 0.14083,
    "h": 311.1
  },
  "luminance": 0.05067
}

Semantic roles & 50–950 ramp

primary
#5C267A
secondary
#71AC50
accent
#DC4C7F
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #5C267A

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

Preview Lab → · Contrast checker → · Palette generator →

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