#5F2B85#5F2B85

#5F2B85 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.6% C 0.147 H 307.6°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#5F2B85
RGBrgb(95, 43, 133)
HSLhsl(275, 51%, 35%)
HSVhsv(275, 68%, 52%)
CMYKcmyk(28.6%, 67.7%, 0%, 47.8%)
CIE-LABlab(29.04, 40.44, -41.10)
CIE-LCHlch(29.04, 57.66, 314.53°)
OKLaboklab(40.59% 0.0897 -0.1163)
OKLCHoklch(40.59% 0.147 307.6)
XYZxyz(9.8160, 5.8542, 22.7986)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2B85 #51852B
analogous
#322B85 #5F2B85 #852B7E
triadic
#5F2B85 #855F2B #2B855F
tetradic
#5F2B85 #85322B #51852B #2B7E85
square
#5F2B85 #85322B #51852B #2B7E85
split-complementary
#5F2B85 #7E852B #2B8532
monochromatic
#1D0D29 #3E1C57 #5F2B85 #803AB3 #9E5FCB

Accessibility & contrast

On white

9.67
#5F2B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5F2B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2B85
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2B85#FFFFFF#000000##FFFFFF
##5F2B851.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004388
Deuteranopia (green-blind)
#184583
Tritanopia (blue-blind)
#593E54
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f2b85;
/* rgb */ color: rgb(95, 43, 133);
/* oklch */ color: oklch(40.6% 0.147 307.6);
Tailwind
colors: {
  custom: {
    50: '#9068a9',
    500: '#5f2b85',
    950: '#000000',
  },
}
SCSS
$custom: #5f2b85;
$custom-light: #9068a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2b85",
  "rgb": {
    "r": 95,
    "g": 43,
    "b": 133
  },
  "hsl": {
    "h": 274.667,
    "s": 51.136,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40593,
    "c": 0.1469,
    "h": 307.6
  },
  "luminance": 0.05854
}

Semantic roles & 50–950 ramp

primary
#5F2B85
secondary
#7FB15B
accent
#DB4D89
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F2B85

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

Preview Lab → · Contrast checker → · Palette generator →

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