#5F125F#5F125F

#5F125F is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.142 H 328.1°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#5F125F
RGBrgb(95, 18, 95)
HSLhsl(300, 68%, 22%)
HSVhsv(300, 81%, 37%)
CMYKcmyk(0%, 81.1%, 0%, 62.7%)
CIE-LABlab(22.63, 43.10, -27.02)
CIE-LCHlch(22.63, 50.87, 327.91°)
OKLaboklab(35.18% 0.1203 -0.0749)
OKLCHoklch(35.18% 0.142 328.1)
XYZxyz(7.0011, 3.6923, 11.1682)
Luminance0.0369 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F125F #125F12
analogous
#39125F #5F125F #5F1239
triadic
#5F125F #5F5F12 #125F5F
tetradic
#5F125F #5F3912 #125F12 #12395F
square
#5F125F #5F3912 #125F12 #12395F
split-complementary
#5F125F #395F12 #125F39
monochromatic
#1A051A #2C082C #5F125F #921C92 #C625C6

Accessibility & contrast

On white

12.08
#5F125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5F125F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F125F
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F125F#FFFFFF#000000##FFFFFF
##5F125F1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013061
Deuteranopia (green-blind)
#28395D
Tritanopia (blue-blind)
#621F38
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f125f;
/* rgb */ color: rgb(95, 18, 95);
/* oklch */ color: oklch(35.2% 0.142 328.1);
Tailwind
colors: {
  custom: {
    50: '#8f5a8d',
    500: '#5f125f',
    950: '#000000',
  },
}
SCSS
$custom: #5f125f;
$custom-light: #8f5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f125f",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 300,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.35177,
    "c": 0.14173,
    "h": 328.1
  },
  "luminance": 0.03692
}

Semantic roles & 50–950 ramp

primary
#5F125F
secondary
#369736
accent
#EB3D3D
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F125F

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

Preview Lab → · Contrast checker → · Palette generator →

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