#5C268F#5C268F

#5C268F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.164 H 303.2°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#5C268F
RGBrgb(92, 38, 143)
HSLhsl(271, 58%, 35%)
HSVhsv(271, 73%, 56%)
CMYKcmyk(35.7%, 73.4%, 0%, 43.9%)
CIE-LABlab(28.50, 44.74, -48.21)
CIE-LCHlch(28.50, 65.77, 312.86°)
OKLaboklab(40.35% 0.0897 -0.1373)
OKLCHoklch(40.35% 0.164 303.2)
XYZxyz(10.0635, 5.6447, 26.5406)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C268F #598F26
analogous
#27268F #5C268F #8F268D
triadic
#5C268F #8F5C26 #268F5C
tetradic
#5C268F #8F2726 #598F26 #268D8F
square
#5C268F #8F2726 #598F26 #268D8F
split-complementary
#5C268F #8D8F26 #268F27
monochromatic
#1E0C2E #3D195F #5C268F #7B33BF #995CD4

Accessibility & contrast

On white

9.86
#5C268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5C268F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C268F
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C268F#FFFFFF#000000##FFFFFF
##5C268F1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#523F58
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5c268f;
/* rgb */ color: rgb(92, 38, 143);
/* oklch */ color: oklch(40.4% 0.164 303.2);
Tailwind
colors: {
  custom: {
    50: '#8f65b1',
    500: '#5c268f',
    950: '#000000',
  },
}
SCSS
$custom: #5c268f;
$custom-light: #8f65b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c268f",
  "rgb": {
    "r": 92,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 270.857,
    "s": 58.011,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40354,
    "c": 0.16398,
    "h": 303.2
  },
  "luminance": 0.05645
}

Semantic roles & 50–950 ramp

primary
#5C268F
secondary
#87B958
accent
#E14792
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C268F

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

Preview Lab → · Contrast checker → · Palette generator →

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