#5F2385#5F2385

#5F2385 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.158 H 308.8°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#5F2385
RGBrgb(95, 35, 133)
HSLhsl(277, 58%, 33%)
HSVhsv(277, 74%, 52%)
CMYKcmyk(28.6%, 73.7%, 0%, 47.8%)
CIE-LABlab(27.65, 44.32, -43.35)
CIE-LCHlch(27.65, 62.00, 315.63°)
OKLaboklab(39.6% 0.0989 -0.1229)
OKLCHoklch(39.6% 0.158 308.8)
XYZxyz(9.5531, 5.3286, 22.7110)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2385 #498523
analogous
#2E2385 #5F2385 #85237A
triadic
#5F2385 #855F23 #23855F
tetradic
#5F2385 #852E23 #498523 #237A85
square
#5F2385 #852E23 #498523 #237A85
split-complementary
#5F2385 #7A8523 #23852E
monochromatic
#1A0924 #3C1655 #5F2385 #8230B5 #A051D1

Accessibility & contrast

On white

10.17
#5F2385 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5F2385 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2385
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2385#FFFFFF#000000##FFFFFF
##5F23851.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F88
Deuteranopia (green-blind)
#0A4283
Tritanopia (blue-blind)
#593952
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f2385;
/* rgb */ color: rgb(95, 35, 133);
/* oklch */ color: oklch(39.6% 0.158 308.8);
Tailwind
colors: {
  custom: {
    50: '#9064a9',
    500: '#5f2385',
    950: '#000000',
  },
}
SCSS
$custom: #5f2385;
$custom-light: #9064a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2385",
  "rgb": {
    "r": 95,
    "g": 35,
    "b": 133
  },
  "hsl": {
    "h": 276.735,
    "s": 58.333,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39599,
    "c": 0.15772,
    "h": 308.8
  },
  "luminance": 0.05328
}

Semantic roles & 50–950 ramp

primary
#5F2385
secondary
#76B54F
accent
#E24682
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F2385

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

Preview Lab → · Contrast checker → · Palette generator →

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