#5F1273#5F1273

#5F1273 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.6% C 0.159 H 318.0°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#5F1273
RGBrgb(95, 18, 115)
HSLhsl(288, 73%, 26%)
HSVhsv(288, 84%, 45%)
CMYKcmyk(17.4%, 84.3%, 0%, 54.9%)
CIE-LABlab(24.01, 46.93, -37.83)
CIE-LCHlch(24.01, 60.28, 321.13°)
OKLaboklab(36.6% 0.1181 -0.1065)
OKLCHoklch(36.6% 0.159 318)
XYZxyz(8.0297, 4.1037, 16.5855)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1273 #267312
analogous
#2E1273 #5F1273 #731256
triadic
#5F1273 #735F12 #12735F
tetradic
#5F1273 #732E12 #267312 #125673
square
#5F1273 #732E12 #267312 #125673
split-complementary
#5F1273 #567312 #12732E
monochromatic
#16041A #330A3E #5F1273 #8B1AA8 #B623DD

Accessibility & contrast

On white

11.53
#5F1273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5F1273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1273
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1273#FFFFFF#000000##FFFFFF
##5F12731.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003476
Deuteranopia (green-blind)
#163B71
Tritanopia (blue-blind)
#5E2943
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f1273;
/* rgb */ color: rgb(95, 18, 115);
/* oklch */ color: oklch(36.6% 0.159 318.0);
Tailwind
colors: {
  custom: {
    50: '#905b9c',
    500: '#5f1273',
    950: '#000000',
  },
}
SCSS
$custom: #5f1273;
$custom-light: #905b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1273",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 287.629,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.36598,
    "c": 0.15907,
    "h": 318
  },
  "luminance": 0.04103
}

Semantic roles & 50–950 ramp

primary
#5F1273
secondary
#4FAA37
accent
#F0385E
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5F1273

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

Preview Lab → · Contrast checker → · Palette generator →

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