#5F1058#5F1058

#5F1058 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.6% C 0.138 H 332.2°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#5F1058
RGBrgb(95, 16, 88)
HSLhsl(305, 71%, 22%)
HSVhsv(305, 83%, 37%)
CMYKcmyk(0%, 83.2%, 7.4%, 62.7%)
CIE-LABlab(21.98, 42.51, -23.41)
CIE-LCHlch(21.98, 48.53, 331.16°)
OKLaboklab(34.57% 0.1221 -0.0644)
OKLCHoklch(34.57% 0.138 332.2)
XYZxyz(6.6661, 3.5086, 9.5568)
Luminance0.0351 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1058 #105F17
analogous
#3F105F #5F1058 #5F1031
triadic
#5F1058 #585F10 #10585F
tetradic
#5F1058 #5F3F10 #105F17 #10315F
square
#5F1058 #5F3F10 #105F17 #10315F
split-complementary
#5F1058 #315F10 #105F3F
monochromatic
#1A0418 #2B0727 #5F1058 #931989 #C822B9

Accessibility & contrast

On white

12.34
#5F1058 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5F1058 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1058
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1058#FFFFFF#000000##FFFFFF
##5F10581.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2E5A
Deuteranopia (green-blind)
#2B3856
Tritanopia (blue-blind)
#631A34
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f1058;
/* rgb */ color: rgb(95, 16, 88);
/* oklch */ color: oklch(34.6% 0.138 332.2);
Tailwind
colors: {
  custom: {
    50: '#8f5987',
    500: '#5f1058',
    950: '#000000',
  },
}
SCSS
$custom: #5f1058;
$custom-light: #8f5987;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1058",
  "rgb": {
    "r": 95,
    "g": 16,
    "b": 88
  },
  "hsl": {
    "h": 305.316,
    "s": 71.171,
    "l": 21.765
  },
  "oklch": {
    "l": 0.34573,
    "c": 0.13808,
    "h": 332.2
  },
  "luminance": 0.03508
}

Semantic roles & 50–950 ramp

primary
#5F1058
secondary
#33983C
accent
#EE4A3A
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F1058

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

Preview Lab → · Contrast checker → · Palette generator →

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