#5C1275#5C1275

#5C1275 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.3% C 0.160 H 315.4°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#5C1275
RGBrgb(92, 18, 117)
HSLhsl(285, 73%, 26%)
HSVhsv(285, 85%, 46%)
CMYKcmyk(21.4%, 84.6%, 0%, 54.1%)
CIE-LABlab(23.65, 46.76, -39.72)
CIE-LCHlch(23.65, 61.36, 319.65°)
OKLaboklab(36.29% 0.1137 -0.1122)
OKLCHoklch(36.29% 0.16 315.4)
XYZxyz(7.8403, 3.9926, 17.1838)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1275 #2B7512
analogous
#2A1275 #5C1275 #75125D
triadic
#5C1275 #755C12 #12755C
tetradic
#5C1275 #752A12 #2B7512 #125D75
square
#5C1275 #752A12 #2B7512 #125D75
split-complementary
#5C1275 #5D7512 #12752A
monochromatic
#15041B #320A40 #5C1275 #861AAA #AF24DD

Accessibility & contrast

On white

11.68
#5C1275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5C1275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1275
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1275#FFFFFF#000000##FFFFFF
##5C12751.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003478
Deuteranopia (green-blind)
#0D3A73
Tritanopia (blue-blind)
#5A2A45
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5c1275;
/* rgb */ color: rgb(92, 18, 117);
/* oklch */ color: oklch(36.3% 0.160 315.4);
Tailwind
colors: {
  custom: {
    50: '#8e5b9d',
    500: '#5c1275',
    950: '#000000',
  },
}
SCSS
$custom: #5c1275;
$custom-light: #8e5b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1275",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 284.848,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.36289,
    "c": 0.15976,
    "h": 315.4
  },
  "luminance": 0.03992
}

Semantic roles & 50–950 ramp

primary
#5C1275
secondary
#55AC37
accent
#F03866
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5C1275

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

Preview Lab → · Contrast checker → · Palette generator →

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