#5F1265#5F1265

#5F1265 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.6% C 0.147 H 324.8°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#5F1265
RGBrgb(95, 18, 101)
HSLhsl(296, 70%, 23%)
HSVhsv(296, 82%, 40%)
CMYKcmyk(5.9%, 82.2%, 0%, 60.4%)
CIE-LABlab(23.02, 44.20, -30.34)
CIE-LCHlch(23.02, 53.62, 325.53°)
OKLaboklab(35.58% 0.12 -0.0846)
OKLCHoklch(35.58% 0.147 324.8)
XYZxyz(7.2844, 3.8056, 12.6603)
Luminance0.0381 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1265 #186512
analogous
#351265 #5F1265 #651241
triadic
#5F1265 #655F12 #12655F
tetradic
#5F1265 #653512 #186512 #124165
square
#5F1265 #653512 #186512 #124165
split-complementary
#5F1265 #416512 #126535
monochromatic
#18051A #2E0931 #5F1265 #901B99 #C125CD

Accessibility & contrast

On white

11.93
#5F1265 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5F1265 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1265
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1265#FFFFFF#000000##FFFFFF
##5F12651.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003167
Deuteranopia (green-blind)
#243A63
Tritanopia (blue-blind)
#61223B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f1265;
/* rgb */ color: rgb(95, 18, 101);
/* oklch */ color: oklch(35.6% 0.147 324.8);
Tailwind
colors: {
  custom: {
    50: '#905b91',
    500: '#5f1265',
    950: '#000000',
  },
}
SCSS
$custom: #5f1265;
$custom-light: #905b91;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1265",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 101
  },
  "hsl": {
    "h": 295.663,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.35581,
    "c": 0.14681,
    "h": 324.8
  },
  "luminance": 0.03805
}

Semantic roles & 50–950 ramp

primary
#5F1265
secondary
#3D9D36
accent
#ED3B48
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040D
muted
#7E797D

Preview Lab

Preview with #5F1265

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

Preview Lab → · Contrast checker → · Palette generator →

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