#5F2D93#5F2D93

#5F2D93 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.160 H 302.4°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#5F2D93
RGBrgb(95, 45, 147)
HSLhsl(269, 53%, 38%)
HSVhsv(269, 69%, 58%)
CMYKcmyk(35.4%, 69.4%, 0%, 42.4%)
CIE-LABlab(30.44, 42.92, -47.51)
CIE-LCHlch(30.44, 64.03, 312.10°)
OKLaboklab(41.92% 0.0858 -0.1351)
OKLCHoklch(41.92% 0.16 302.4)
XYZxyz(10.9229, 6.4162, 28.2611)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2D93 #61932D
analogous
#2D2E93 #5F2D93 #922D93
triadic
#5F2D93 #935F2D #2D935F
tetradic
#5F2D93 #932D2E #61932D #2D9392
square
#5F2D93 #932D2E #61932D #2D9392
split-complementary
#5F2D93 #93922D #2E932D
monochromatic
#221035 #411F64 #5F2D93 #7D3BC2 #9C69D1

Accessibility & contrast

On white

9.20
#5F2D93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5F2D93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2D93
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2D93#FFFFFF#000000##FFFFFF
##5F2D931.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004796
Deuteranopia (green-blind)
#004791
Tritanopia (blue-blind)
#54445C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f2d93;
/* rgb */ color: rgb(95, 45, 147);
/* oklch */ color: oklch(41.9% 0.160 302.4);
Tailwind
colors: {
  custom: {
    50: '#916ab3',
    500: '#5f2d93',
    950: '#000000',
  },
}
SCSS
$custom: #5f2d93;
$custom-light: #916ab3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2d93",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 147
  },
  "hsl": {
    "h": 269.412,
    "s": 53.125,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41921,
    "c": 0.16009,
    "h": 302.4
  },
  "luminance": 0.06416
}

Semantic roles & 50–950 ramp

primary
#5F2D93
secondary
#8FB864
accent
#DD4B95
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F2D93

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

Preview Lab → · Contrast checker → · Palette generator →

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