#5F1355#5F1355

#5F1355 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.6% C 0.132 H 334.1°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#5F1355
RGBrgb(95, 19, 85)
HSLhsl(308, 67%, 22%)
HSVhsv(308, 80%, 37%)
CMYKcmyk(0%, 80%, 10.5%, 62.7%)
CIE-LABlab(22.14, 41.02, -21.14)
CIE-LCHlch(22.14, 46.15, 332.74°)
OKLaboklab(34.64% 0.1191 -0.0579)
OKLCHoklch(34.64% 0.132 334.1)
XYZxyz(6.5919, 3.5551, 8.9316)
Luminance0.0355 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1355 #135F1D
analogous
#43135F #5F1355 #5F132F
triadic
#5F1355 #555F13 #13555F
tetradic
#5F1355 #5F4313 #135F1D #132F5F
square
#5F1355 #5F4313 #135F1D #132F5F
split-complementary
#5F1355 #2F5F13 #135F43
monochromatic
#1A0517 #2C0927 #5F1355 #921D83 #C527B0

Accessibility & contrast

On white

12.27
#5F1355 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5F1355 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1355
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1355#FFFFFF#000000##FFFFFF
##5F13551.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112E57
Deuteranopia (green-blind)
#2E3953
Tritanopia (blue-blind)
#641A33
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f1355;
/* rgb */ color: rgb(95, 19, 85);
/* oklch */ color: oklch(34.6% 0.132 334.1);
Tailwind
colors: {
  custom: {
    50: '#8f5a85',
    500: '#5f1355',
    950: '#000000',
  },
}
SCSS
$custom: #5f1355;
$custom-light: #8f5a85;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1355",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 85
  },
  "hsl": {
    "h": 307.895,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34636,
    "c": 0.13245,
    "h": 334.1
  },
  "luminance": 0.03555
}

Semantic roles & 50–950 ramp

primary
#5F1355
secondary
#379744
accent
#EA553E
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F1355

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

Preview Lab → · Contrast checker → · Palette generator →

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