#5F1685#5F1685

#5F1685 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.172 H 310.2°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#5F1685
RGBrgb(95, 22, 133)
HSLhsl(279, 72%, 30%)
HSVhsv(279, 83%, 52%)
CMYKcmyk(28.6%, 83.5%, 0%, 47.8%)
CIE-LABlab(25.86, 49.45, -46.25)
CIE-LCHlch(25.86, 67.71, 316.92°)
OKLaboklab(38.34% 0.111 -0.1313)
OKLCHoklch(38.34% 0.172 310.2)
XYZxyz(9.2390, 4.7004, 22.6063)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1685 #3C8516
analogous
#271685 #5F1685 #851674
triadic
#5F1685 #855F16 #16855F
tetradic
#5F1685 #852716 #3C8516 #167485
square
#5F1685 #852716 #3C8516 #167485
split-complementary
#5F1685 #748516 #168527
monochromatic
#14051C #390D50 #5F1685 #851FBA #A537DE

Accessibility & contrast

On white

10.82
#5F1685 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5F1685 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1685
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1685#FFFFFF#000000##FFFFFF
##5F16851.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003E83
Tritanopia (blue-blind)
#5A334F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f1685;
/* rgb */ color: rgb(95, 22, 133);
/* oklch */ color: oklch(38.3% 0.172 310.2);
Tailwind
colors: {
  custom: {
    50: '#915ea9',
    500: '#5f1685',
    950: '#000000',
  },
}
SCSS
$custom: #5f1685;
$custom-light: #915ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1685",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 133
  },
  "hsl": {
    "h": 279.459,
    "s": 71.613,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3834,
    "c": 0.17191,
    "h": 310.2
  },
  "luminance": 0.047
}

Semantic roles & 50–950 ramp

primary
#5F1685
secondary
#68B93E
accent
#EE3977
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1685

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

Preview Lab → · Contrast checker → · Palette generator →

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