#5C127B#5C127B

#5C127B is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.8% C 0.165 H 312.8°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#5C127B
RGBrgb(92, 18, 123)
HSLhsl(282, 74%, 28%)
HSVhsv(282, 85%, 48%)
CMYKcmyk(25.2%, 85.4%, 0%, 51.8%)
CIE-LABlab(24.12, 48.03, -42.78)
CIE-LCHlch(24.12, 64.32, 318.31°)
OKLaboklab(36.77% 0.1123 -0.1212)
OKLCHoklch(36.77% 0.165 312.8)
XYZxyz(8.2044, 4.1382, 19.1016)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C127B #317B12
analogous
#28127B #5C127B #7B1265
triadic
#5C127B #7B5C12 #127B5C
tetradic
#5C127B #7B2812 #317B12 #12657B
square
#5C127B #7B2812 #317B12 #12657B
split-complementary
#5C127B #657B12 #127B28
monochromatic
#14041B #340A46 #5C127B #841AB0 #A928E0

Accessibility & contrast

On white

11.49
#5C127B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5C127B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C127B
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C127B#FFFFFF#000000##FFFFFF
##5C127B1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003B79
Tritanopia (blue-blind)
#582D48
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5c127b;
/* rgb */ color: rgb(92, 18, 123);
/* oklch */ color: oklch(36.8% 0.165 312.8);
Tailwind
colors: {
  custom: {
    50: '#8e5ba2',
    500: '#5c127b',
    950: '#000000',
  },
}
SCSS
$custom: #5c127b;
$custom-light: #8e5ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c127b",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 123
  },
  "hsl": {
    "h": 282.286,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.36772,
    "c": 0.16525,
    "h": 312.8
  },
  "luminance": 0.04138
}

Semantic roles & 50–950 ramp

primary
#5C127B
secondary
#5CB138
accent
#F1376E
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5C127B

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

Preview Lab → · Contrast checker → · Palette generator →

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