#5F1275#5F1275

#5F1275 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.8% C 0.161 H 317.1°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#5F1275
RGBrgb(95, 18, 117)
HSLhsl(287, 73%, 26%)
HSVhsv(287, 85%, 46%)
CMYKcmyk(18.8%, 84.6%, 0%, 54.1%)
CIE-LABlab(24.16, 47.34, -38.87)
CIE-LCHlch(24.16, 61.25, 320.61°)
OKLaboklab(36.75% 0.1178 -0.1096)
OKLCHoklch(36.75% 0.161 317.1)
XYZxyz(8.1460, 4.1502, 17.1982)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1275 #287512
analogous
#2E1275 #5F1275 #75125A
triadic
#5F1275 #755F12 #12755F
tetradic
#5F1275 #752E12 #287512 #125A75
square
#5F1275 #752E12 #287512 #125A75
split-complementary
#5F1275 #5A7512 #12752E
monochromatic
#16041B #340A40 #5F1275 #8A1AAA #B424DD

Accessibility & contrast

On white

11.48
#5F1275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1275
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1275#FFFFFF#000000##FFFFFF
##5F12751.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003578
Deuteranopia (green-blind)
#133C73
Tritanopia (blue-blind)
#5E2A45
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f1275;
/* rgb */ color: rgb(95, 18, 117);
/* oklch */ color: oklch(36.8% 0.161 317.1);
Tailwind
colors: {
  custom: {
    50: '#905b9d',
    500: '#5f1275',
    950: '#000000',
  },
}
SCSS
$custom: #5f1275;
$custom-light: #905b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1275",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 286.667,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.36752,
    "c": 0.16085,
    "h": 317.1
  },
  "luminance": 0.0415
}

Semantic roles & 50–950 ramp

primary
#5F1275
secondary
#51AC37
accent
#F03861
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5F1275

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

Preview Lab → · Contrast checker → · Palette generator →

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