#5F2D7C#5F2D7C

#5F2D7C is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.2% C 0.134 H 311.0°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#5F2D7C
RGBrgb(95, 45, 124)
HSLhsl(278, 47%, 33%)
HSVhsv(278, 64%, 49%)
CMYKcmyk(23.4%, 63.7%, 0%, 51.4%)
CIE-LABlab(28.81, 37.21, -35.83)
CIE-LCHlch(28.81, 51.66, 316.08°)
OKLaboklab(40.23% 0.0876 -0.1009)
OKLCHoklch(40.23% 0.134 311)
XYZxyz(9.2951, 5.7651, 19.6880)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2D7C #4A7C2D
analogous
#372D7C #5F2D7C #7C2D71
triadic
#5F2D7C #7C5F2D #2D7C5F
tetradic
#5F2D7C #7C372D #4A7C2D #2D717C
square
#5F2D7C #7C372D #4A7C2D #2D717C
split-complementary
#5F2D7C #717C2D #2D7C37
monochromatic
#1A0C22 #3D1D4F #5F2D7C #813DA9 #9F5FC5

Accessibility & contrast

On white

9.75
#5F2D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5F2D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2D7C
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2D7C#FFFFFF#000000##FFFFFF
##5F2D7C1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C427E
Deuteranopia (green-blind)
#25457A
Tritanopia (blue-blind)
#5B3C50
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f2d7c;
/* rgb */ color: rgb(95, 45, 124);
/* oklch */ color: oklch(40.2% 0.134 311.0);
Tailwind
colors: {
  custom: {
    50: '#8f69a2',
    500: '#5f2d7c',
    950: '#000000',
  },
}
SCSS
$custom: #5f2d7c;
$custom-light: #8f69a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2d7c",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 277.975,
    "s": 46.746,
    "l": 33.137
  },
  "oklch": {
    "l": 0.40231,
    "c": 0.13362,
    "h": 311
  },
  "luminance": 0.05765
}

Semantic roles & 50–950 ramp

primary
#5F2D7C
secondary
#78AB5A
accent
#D65182
background
#F9F6FA
surface
#F1EBF3
border
#CBC6CD
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5F2D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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