#5F2C83#5F2C83

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

Color values

HEX#5F2C83
RGBrgb(95, 44, 131)
HSLhsl(275, 50%, 34%)
HSVhsv(275, 66%, 51%)
CMYKcmyk(27.5%, 66.4%, 0%, 48.6%)
CIE-LABlab(29.09, 39.43, -39.78)
CIE-LCHlch(29.09, 56.01, 314.75°)
OKLaboklab(40.58% 0.0887 -0.1124)
OKLCHoklch(40.58% 0.143 308.3)
XYZxyz(9.7159, 5.8731, 22.0901)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2C83 #50832C
analogous
#342C83 #5F2C83 #832C7C
triadic
#5F2C83 #835F2C #2C835F
tetradic
#5F2C83 #83342C #50832C #2C7C83
square
#5F2C83 #83342C #50832C #2C7C83
split-complementary
#5F2C83 #7C832C #2C8334
monochromatic
#1D0D27 #3E1D55 #5F2C83 #803BB1 #9E60CA

Accessibility & contrast

On white

9.66
#5F2C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2C83
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2C83#FFFFFF#000000##FFFFFF
##5F2C831.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f2c83;
/* rgb */ color: rgb(95, 44, 131);
/* oklch */ color: oklch(40.6% 0.143 308.3);
Tailwind
colors: {
  custom: {
    50: '#9069a8',
    500: '#5f2c83',
    950: '#000000',
  },
}
SCSS
$custom: #5f2c83;
$custom-light: #9069a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2c83",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 131
  },
  "hsl": {
    "h": 275.172,
    "s": 49.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40583,
    "c": 0.14317,
    "h": 308.3
  },
  "luminance": 0.05873
}

Semantic roles & 50–950 ramp

primary
#5F2C83
secondary
#7EB05B
accent
#D94F88
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5F2C83

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

Preview Lab → · Contrast checker → · Palette generator →

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