#5C268D#5C268D

#5C268D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.162 H 303.8°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#5C268D
RGBrgb(92, 38, 141)
HSLhsl(271, 58%, 35%)
HSVhsv(271, 73%, 55%)
CMYKcmyk(34.8%, 73%, 0%, 44.7%)
CIE-LABlab(28.34, 44.24, -47.23)
CIE-LCHlch(28.34, 64.72, 313.13°)
OKLaboklab(40.19% 0.09 -0.1344)
OKLCHoklch(40.19% 0.162 303.8)
XYZxyz(9.9134, 5.5846, 25.7498)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C268D #578D26
analogous
#28268D #5C268D #8D268B
triadic
#5C268D #8D5C26 #268D5C
tetradic
#5C268D #8D2826 #578D26 #268B8D
square
#5C268D #8D2826 #578D26 #268B8D
split-complementary
#5C268D #8B8D26 #268D28
monochromatic
#1D0C2D #3D195D #5C268D #7B33BD #9A5BD3

Accessibility & contrast

On white

9.92
#5C268D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C268D
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C268D#FFFFFF#000000##FFFFFF
##5C268D1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c268d;
/* rgb */ color: rgb(92, 38, 141);
/* oklch */ color: oklch(40.2% 0.162 303.8);
Tailwind
colors: {
  custom: {
    50: '#8f65af',
    500: '#5c268d',
    950: '#000000',
  },
}
SCSS
$custom: #5c268d;
$custom-light: #8f65af;
$custom-dark: #000000;
JSON
{
  "hex": "#5c268d",
  "rgb": {
    "r": 92,
    "g": 38,
    "b": 141
  },
  "hsl": {
    "h": 271.456,
    "s": 57.542,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40192,
    "c": 0.16177,
    "h": 303.8
  },
  "luminance": 0.05585
}

Semantic roles & 50–950 ramp

primary
#5C268D
secondary
#85B857
accent
#E14790
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5C268D

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

Preview Lab → · Contrast checker → · Palette generator →

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