#5F1054#5F1054

#5F1054 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.135 H 334.7°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#5F1054
RGBrgb(95, 16, 84)
HSLhsl(308, 71%, 22%)
HSVhsv(308, 83%, 37%)
CMYKcmyk(0%, 83.2%, 11.6%, 62.7%)
CIE-LABlab(21.74, 41.84, -21.10)
CIE-LCHlch(21.74, 46.86, 333.24°)
OKLaboklab(34.33% 0.122 -0.0578)
OKLCHoklch(34.33% 0.135 334.7)
XYZxyz(6.5049, 3.4442, 8.7080)
Luminance0.0344 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1054 #105F1B
analogous
#43105F #5F1054 #5F102D
triadic
#5F1054 #545F10 #10545F
tetradic
#5F1054 #5F4310 #105F1B #102D5F
square
#5F1054 #5F4310 #105F1B #102D5F
split-complementary
#5F1054 #2D5F10 #105F43
monochromatic
#1A0417 #2B0726 #5F1054 #931982 #C822B1

Accessibility & contrast

On white

12.43
#5F1054 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5F1054 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1054
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1054#FFFFFF#000000##FFFFFF
##5F10541.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2D56
Deuteranopia (green-blind)
#2D3852
Tritanopia (blue-blind)
#641831
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5f1054;
/* rgb */ color: rgb(95, 16, 84);
/* oklch */ color: oklch(34.3% 0.135 334.7);
Tailwind
colors: {
  custom: {
    50: '#8f5984',
    500: '#5f1054',
    950: '#000000',
  },
}
SCSS
$custom: #5f1054;
$custom-light: #8f5984;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1054",
  "rgb": {
    "r": 95,
    "g": 16,
    "b": 84
  },
  "hsl": {
    "h": 308.354,
    "s": 71.171,
    "l": 21.765
  },
  "oklch": {
    "l": 0.3433,
    "c": 0.13495,
    "h": 334.7
  },
  "luminance": 0.03444
}

Semantic roles & 50–950 ramp

primary
#5F1054
secondary
#339841
accent
#EE533A
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F1054

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

Preview Lab → · Contrast checker → · Palette generator →

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