#5F2D83#5F2D83

#5F2D83 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.142 H 308.1°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#5F2D83
RGBrgb(95, 45, 131)
HSLhsl(275, 49%, 35%)
HSVhsv(275, 66%, 51%)
CMYKcmyk(27.5%, 65.6%, 0%, 48.6%)
CIE-LABlab(29.28, 38.91, -39.47)
CIE-LCHlch(29.28, 55.42, 314.59°)
OKLaboklab(40.72% 0.0874 -0.1115)
OKLCHoklch(40.72% 0.142 308.1)
XYZxyz(9.7536, 5.9485, 22.1027)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2D83 #51832D
analogous
#342D83 #5F2D83 #832D7C
triadic
#5F2D83 #835F2D #2D835F
tetradic
#5F2D83 #83342D #51832D #2D7C83
square
#5F2D83 #83342D #51832D #2D7C83
split-complementary
#5F2D83 #7C832D #2D8334
monochromatic
#1D0E28 #3E1D55 #5F2D83 #803DB1 #9E62C9

Accessibility & contrast

On white

9.59
#5F2D83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5F2D83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2D83
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2D83#FFFFFF#000000##FFFFFF
##5F2D831.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004386
Deuteranopia (green-blind)
#1E4681
Tritanopia (blue-blind)
#5A3F54
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f2d83;
/* rgb */ color: rgb(95, 45, 131);
/* oklch */ color: oklch(40.7% 0.142 308.1);
Tailwind
colors: {
  custom: {
    50: '#9069a8',
    500: '#5f2d83',
    950: '#000000',
  },
}
SCSS
$custom: #5f2d83;
$custom-light: #9069a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2d83",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 131
  },
  "hsl": {
    "h": 274.884,
    "s": 48.864,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40722,
    "c": 0.14168,
    "h": 308.1
  },
  "luminance": 0.05948
}

Semantic roles & 50–950 ramp

primary
#5F2D83
secondary
#7FAF5C
accent
#D84F89
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5F2D83

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

Preview Lab → · Contrast checker → · Palette generator →

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