#5C268E#5C268E

#5C268E is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.163 H 303.5°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#5C268E
RGBrgb(92, 38, 142)
HSLhsl(271, 58%, 35%)
HSVhsv(271, 73%, 56%)
CMYKcmyk(35.2%, 73.2%, 0%, 44.3%)
CIE-LABlab(28.42, 44.49, -47.72)
CIE-LCHlch(28.42, 65.25, 312.99°)
OKLaboklab(40.27% 0.0899 -0.1358)
OKLCHoklch(40.27% 0.163 303.5)
XYZxyz(9.9881, 5.6145, 26.1435)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C268E #588E26
analogous
#28268E #5C268E #8E268C
triadic
#5C268E #8E5C26 #268E5C
tetradic
#5C268E #8E2826 #588E26 #268C8E
square
#5C268E #8E2826 #588E26 #268C8E
split-complementary
#5C268E #8C8E26 #268E28
monochromatic
#1D0C2D #3D195E #5C268E #7B33BE #9A5BD3

Accessibility & contrast

On white

9.89
#5C268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5C268E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C268E
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C268E#FFFFFF#000000##FFFFFF
##5C268E1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#523F57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5c268e;
/* rgb */ color: rgb(92, 38, 142);
/* oklch */ color: oklch(40.3% 0.163 303.5);
Tailwind
colors: {
  custom: {
    50: '#8f65b0',
    500: '#5c268e',
    950: '#000000',
  },
}
SCSS
$custom: #5c268e;
$custom-light: #8f65b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c268e",
  "rgb": {
    "r": 92,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 271.154,
    "s": 57.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40272,
    "c": 0.16288,
    "h": 303.5
  },
  "luminance": 0.05615
}

Semantic roles & 50–950 ramp

primary
#5C268E
secondary
#86B858
accent
#E14791
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5C268E

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

Preview Lab → · Contrast checker → · Palette generator →

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