#5F1253#5F1253

#5F1253 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.4% C 0.132 H 335.3°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#5F1253
RGBrgb(95, 18, 83)
HSLhsl(309, 68%, 22%)
HSVhsv(309, 81%, 37%)
CMYKcmyk(0%, 81.1%, 12.6%, 62.7%)
CIE-LABlab(21.91, 41.03, -20.16)
CIE-LCHlch(21.91, 45.72, 333.83°)
OKLaboklab(34.43% 0.12 -0.0551)
OKLCHoklch(34.43% 0.132 335.3)
XYZxyz(6.4970, 3.4906, 8.5135)
Luminance0.0349 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1253 #125F1E
analogous
#45125F #5F1253 #5F122C
triadic
#5F1253 #535F12 #12535F
tetradic
#5F1253 #5F4512 #125F1E #122C5F
square
#5F1253 #5F4512 #125F1E #122C5F
split-complementary
#5F1253 #2C5F12 #125F45
monochromatic
#1A0516 #2C0826 #5F1253 #921C80 #C625AD

Accessibility & contrast

On white

12.37
#5F1253 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5F1253 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1253
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1253#FFFFFF#000000##FFFFFF
##5F12531.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122D55
Deuteranopia (green-blind)
#2E3851
Tritanopia (blue-blind)
#641831
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5f1253;
/* rgb */ color: rgb(95, 18, 83);
/* oklch */ color: oklch(34.4% 0.132 335.3);
Tailwind
colors: {
  custom: {
    50: '#8f5a83',
    500: '#5f1253',
    950: '#000000',
  },
}
SCSS
$custom: #5f1253;
$custom-light: #8f5a83;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1253",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 83
  },
  "hsl": {
    "h": 309.351,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34433,
    "c": 0.13201,
    "h": 335.3
  },
  "luminance": 0.0349
}

Semantic roles & 50–950 ramp

primary
#5F1253
secondary
#369745
accent
#EB583D
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F1253

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

Preview Lab → · Contrast checker → · Palette generator →

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