#5F1682#5F1682

#5F1682 is a dark, vivid purple. Relative luminance 0.046; OKLCH L 38.1% C 0.169 H 311.4°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#5F1682
RGBrgb(95, 22, 130)
HSLhsl(281, 71%, 30%)
HSVhsv(281, 83%, 51%)
CMYKcmyk(26.9%, 83.1%, 0%, 49%)
CIE-LABlab(25.62, 48.79, -44.76)
CIE-LCHlch(25.62, 66.21, 317.47°)
OKLaboklab(38.09% 0.1117 -0.1269)
OKLCHoklch(38.09% 0.169 311.4)
XYZxyz(9.0347, 4.6187, 21.5303)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1682 #398216
analogous
#291682 #5F1682 #82166F
triadic
#5F1682 #825F16 #16825F
tetradic
#5F1682 #822916 #398216 #166F82
square
#5F1682 #822916 #398216 #166F82
split-complementary
#5F1682 #6F8216 #168229
monochromatic
#13041A #390D4E #5F1682 #851FB6 #A735DD

Accessibility & contrast

On white

10.92
#5F1682 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5F1682 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1682
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1682#FFFFFF#000000##FFFFFF
##5F16821.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003E80
Tritanopia (blue-blind)
#5A324D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f1682;
/* rgb */ color: rgb(95, 22, 130);
/* oklch */ color: oklch(38.1% 0.169 311.4);
Tailwind
colors: {
  custom: {
    50: '#915ea7',
    500: '#5f1682',
    950: '#000000',
  },
}
SCSS
$custom: #5f1682;
$custom-light: #915ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1682",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 130
  },
  "hsl": {
    "h": 280.556,
    "s": 71.053,
    "l": 29.804
  },
  "oklch": {
    "l": 0.38093,
    "c": 0.16909,
    "h": 311.4
  },
  "luminance": 0.04618
}

Semantic roles & 50–950 ramp

primary
#5F1682
secondary
#65B73D
accent
#EE3A74
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F1682

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

Preview Lab → · Contrast checker → · Palette generator →

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