#5F2155#5F2155

#5F2155 is a dark, moderate purple. Relative luminance 0.042; OKLCH L 36.2% C 0.113 H 334.5°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#5F2155
RGBrgb(95, 33, 85)
HSLhsl(310, 48%, 25%)
HSVhsv(310, 65%, 37%)
CMYKcmyk(0%, 65.3%, 10.5%, 62.7%)
CIE-LABlab(24.25, 35.13, -17.84)
CIE-LCHlch(24.25, 39.40, 333.07°)
OKLaboklab(36.16% 0.1018 -0.0486)
OKLCHoklch(36.16% 0.113 334.5)
XYZxyz(6.9029, 4.1770, 9.0352)
Luminance0.0418 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2155 #215F2B
analogous
#4A215F #5F2155 #5F2136
triadic
#5F2155 #555F21 #21555F
tetradic
#5F2155 #5F4A21 #215F2B #21365F
square
#5F2155 #5F4A21 #215F2B #21365F
split-complementary
#5F2155 #365F21 #215F4A
monochromatic
#170814 #32112C #5F2155 #8C317E #BA41A6

Accessibility & contrast

On white

11.44
#5F2155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5F2155 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2155
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2155#FFFFFF#000000##FFFFFF
##5F21551.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213457
Deuteranopia (green-blind)
#343D53
Tritanopia (blue-blind)
#642537
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f2155;
/* rgb */ color: rgb(95, 33, 85);
/* oklch */ color: oklch(36.2% 0.113 334.5);
Tailwind
colors: {
  custom: {
    50: '#8f6185',
    500: '#5f2155',
    950: '#000000',
  },
}
SCSS
$custom: #5f2155;
$custom-light: #8f6185;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2155",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 85
  },
  "hsl": {
    "h": 309.677,
    "s": 48.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.36163,
    "c": 0.1128,
    "h": 334.5
  },
  "luminance": 0.04176
}

Semantic roles & 50–950 ramp

primary
#5F2155
secondary
#499355
accent
#D86650
background
#F8F5F8
surface
#F0EAEF
border
#CBC6CA
text
#0D050B
muted
#7D797C

Preview Lab

Preview with #5F2155

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

Preview Lab → · Contrast checker → · Palette generator →

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