#5F2D94#5F2D94

#5F2D94 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.161 H 302.1°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#5F2D94
RGBrgb(95, 45, 148)
HSLhsl(269, 53%, 38%)
HSVhsv(269, 70%, 58%)
CMYKcmyk(35.8%, 69.6%, 0%, 42%)
CIE-LABlab(30.52, 43.18, -48.00)
CIE-LCHlch(30.52, 64.56, 311.97°)
OKLaboklab(42% 0.0857 -0.1366)
OKLCHoklch(42% 0.161 302.1)
XYZxyz(11.0017, 6.4478, 28.6762)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2D94 #62942D
analogous
#2D2F94 #5F2D94 #922D94
triadic
#5F2D94 #945F2D #2D945F
tetradic
#5F2D94 #942D2F #62942D #2D9492
square
#5F2D94 #942D2F #62942D #2D9492
split-complementary
#5F2D94 #94922D #2F942D
monochromatic
#231036 #411F65 #5F2D94 #7D3BC3 #9C6AD2

Accessibility & contrast

On white

9.17
#5F2D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5F2D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2D94
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2D94#FFFFFF#000000##FFFFFF
##5F2D941.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004797
Deuteranopia (green-blind)
#004792
Tritanopia (blue-blind)
#54455D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f2d94;
/* rgb */ color: rgb(95, 45, 148);
/* oklch */ color: oklch(42.0% 0.161 302.1);
Tailwind
colors: {
  custom: {
    50: '#916ab4',
    500: '#5f2d94',
    950: '#000000',
  },
}
SCSS
$custom: #5f2d94;
$custom-light: #916ab4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2d94",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 148
  },
  "hsl": {
    "h": 269.126,
    "s": 53.368,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42,
    "c": 0.16123,
    "h": 302.1
  },
  "luminance": 0.06448
}

Semantic roles & 50–950 ramp

primary
#5F2D94
secondary
#90B864
accent
#DD4B96
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F2D94

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

Preview Lab → · Contrast checker → · Palette generator →

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