#5F1865#5F1865

#5F1865 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.140 H 324.6°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#5F1865
RGBrgb(95, 24, 101)
HSLhsl(295, 62%, 25%)
HSVhsv(295, 76%, 40%)
CMYKcmyk(5.9%, 76.2%, 0%, 60.4%)
CIE-LABlab(23.76, 42.08, -29.16)
CIE-LCHlch(23.76, 51.20, 325.28°)
OKLaboklab(36.11% 0.1141 -0.0812)
OKLCHoklch(36.11% 0.14 324.6)
XYZxyz(7.3947, 4.0262, 12.6970)
Luminance0.0403 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1865 #1E6518
analogous
#391865 #5F1865 #651845
triadic
#5F1865 #655F18 #18655F
tetradic
#5F1865 #653918 #1E6518 #184565
square
#5F1865 #653918 #1E6518 #184565
split-complementary
#5F1865 #456518 #186539
monochromatic
#170619 #300C34 #5F1865 #8E2496 #BC30C8

Accessibility & contrast

On white

11.63
#5F1865 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5F1865 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1865
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1865#FFFFFF#000000##FFFFFF
##5F18651.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013367
Deuteranopia (green-blind)
#273B63
Tritanopia (blue-blind)
#61253D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f1865;
/* rgb */ color: rgb(95, 24, 101);
/* oklch */ color: oklch(36.1% 0.140 324.6);
Tailwind
colors: {
  custom: {
    50: '#8f5d91',
    500: '#5f1865',
    950: '#000000',
  },
}
SCSS
$custom: #5f1865;
$custom-light: #8f5d91;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1865",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 101
  },
  "hsl": {
    "h": 295.325,
    "s": 61.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.36108,
    "c": 0.14007,
    "h": 324.6
  },
  "luminance": 0.04026
}

Semantic roles & 50–950 ramp

primary
#5F1865
secondary
#459B3E
accent
#E54350
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D050D
muted
#7E797D

Preview Lab

Preview with #5F1865

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

Preview Lab → · Contrast checker → · Palette generator →

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