#5F1262#5F1262

#5F1262 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.4% C 0.144 H 326.4°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#5F1262
RGBrgb(95, 18, 98)
HSLhsl(298, 69%, 23%)
HSVhsv(298, 82%, 38%)
CMYKcmyk(3.1%, 81.6%, 0%, 61.6%)
CIE-LABlab(22.82, 43.65, -28.69)
CIE-LCHlch(22.82, 52.23, 326.68°)
OKLaboklab(35.38% 0.1202 -0.0798)
OKLCHoklch(35.38% 0.144 326.4)
XYZxyz(7.1401, 3.7479, 11.9002)
Luminance0.0375 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1262 #156212
analogous
#371262 #5F1262 #62123D
triadic
#5F1262 #625F12 #12625F
tetradic
#5F1262 #623712 #156212 #123D62
square
#5F1262 #623712 #156212 #123D62
split-complementary
#5F1262 #3D6212 #126237
monochromatic
#19051A #2D092E #5F1262 #911B96 #C325C9

Accessibility & contrast

On white

12.00
#5F1262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5F1262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1262
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1262#FFFFFF#000000##FFFFFF
##5F12621.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003064
Deuteranopia (green-blind)
#263A60
Tritanopia (blue-blind)
#62203A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f1262;
/* rgb */ color: rgb(95, 18, 98);
/* oklch */ color: oklch(35.4% 0.144 326.4);
Tailwind
colors: {
  custom: {
    50: '#8f5a8f',
    500: '#5f1262',
    950: '#000000',
  },
}
SCSS
$custom: #5f1262;
$custom-light: #8f5a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1262",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 98
  },
  "hsl": {
    "h": 297.75,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.35376,
    "c": 0.14426,
    "h": 326.4
  },
  "luminance": 0.03747
}

Semantic roles & 50–950 ramp

primary
#5F1262
secondary
#3A9A36
accent
#EC3C43
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F1262

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

Preview Lab → · Contrast checker → · Palette generator →

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