#5C267E#5C267E

#5C267E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.0% C 0.145 H 309.4°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#5C267E
RGBrgb(92, 38, 126)
HSLhsl(277, 54%, 32%)
HSVhsv(277, 70%, 49%)
CMYKcmyk(27%, 69.8%, 0%, 50.6%)
CIE-LABlab(27.21, 40.57, -39.69)
CIE-LCHlch(27.21, 56.75, 315.62°)
OKLaboklab(39.03% 0.0922 -0.1122)
OKLCHoklch(39.03% 0.145 309.4)
XYZxyz(8.8719, 5.1681, 20.2648)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C267E #487E26
analogous
#30267E #5C267E #7E2674
triadic
#5C267E #7E5C26 #267E5C
tetradic
#5C267E #7E3026 #487E26 #26747E
square
#5C267E #7E3026 #487E26 #26747E
split-complementary
#5C267E #747E26 #267E30
monochromatic
#170A20 #3A184F #5C267E #7E34AD #9D53CB

Accessibility & contrast

On white

10.33
#5C267E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C267E
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C267E#FFFFFF#000000##FFFFFF
##5C267E1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#17417C
Tritanopia (blue-blind)
#57394F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5c267e;
/* rgb */ color: rgb(92, 38, 126);
/* oklch */ color: oklch(39.0% 0.145 309.4);
Tailwind
colors: {
  custom: {
    50: '#8d65a4',
    500: '#5c267e',
    950: '#000000',
  },
}
SCSS
$custom: #5c267e;
$custom-light: #8d65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c267e",
  "rgb": {
    "r": 92,
    "g": 38,
    "b": 126
  },
  "hsl": {
    "h": 276.818,
    "s": 53.659,
    "l": 32.157
  },
  "oklch": {
    "l": 0.39027,
    "c": 0.14523,
    "h": 309.4
  },
  "luminance": 0.05168
}

Semantic roles & 50–950 ramp

primary
#5C267E
secondary
#75B050
accent
#DD4B83
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D060F
muted
#7D7A7F

Preview Lab

Preview with #5C267E

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

Preview Lab → · Contrast checker → · Palette generator →

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