#5E127C#5E127C

#5E127C is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.2% C 0.167 H 313.5°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#5E127C
RGBrgb(94, 18, 124)
HSLhsl(283, 75%, 28%)
HSVhsv(283, 85%, 49%)
CMYKcmyk(24.2%, 85.5%, 0%, 51.4%)
CIE-LABlab(24.54, 48.60, -42.73)
CIE-LCHlch(24.54, 64.71, 318.68°)
OKLaboklab(37.15% 0.1149 -0.121)
OKLCHoklch(37.15% 0.167 313.5)
XYZxyz(8.4698, 4.2678, 19.4425)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E127C #307C12
analogous
#29127C #5E127C #7C1265
triadic
#5E127C #7C5E12 #127C5E
tetradic
#5E127C #7C2912 #307C12 #12657C
square
#5E127C #7C2912 #307C12 #12657C
split-complementary
#5E127C #657C12 #127C29
monochromatic
#14041B #350A47 #5E127C #871AB1 #AC29E0

Accessibility & contrast

On white

11.33
#5E127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5E127C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E127C
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E127C#FFFFFF#000000##FFFFFF
##5E127C1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#013C7A
Tritanopia (blue-blind)
#5B2D49
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5e127c;
/* rgb */ color: rgb(94, 18, 124);
/* oklch */ color: oklch(37.2% 0.167 313.5);
Tailwind
colors: {
  custom: {
    50: '#905ca3',
    500: '#5e127c',
    950: '#000000',
  },
}
SCSS
$custom: #5e127c;
$custom-light: #905ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e127c",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 283.019,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37153,
    "c": 0.16681,
    "h": 313.5
  },
  "luminance": 0.04268
}

Semantic roles & 50–950 ramp

primary
#5E127C
secondary
#5AB238
accent
#F1376B
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5E127C

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

Preview Lab → · Contrast checker → · Palette generator →

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