#5F1D98#5F1D98

#5F1D98 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.184 H 303.0°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#5F1D98
RGBrgb(95, 29, 152)
HSLhsl(272, 68%, 35%)
HSVhsv(272, 81%, 60%)
CMYKcmyk(37.5%, 80.9%, 0%, 40.4%)
CIE-LABlab(28.32, 51.31, -54.02)
CIE-LCHlch(28.32, 74.51, 313.53°)
OKLaboklab(40.55% 0.1002 -0.1542)
OKLCHoklch(40.55% 0.184 303)
XYZxyz(10.8248, 5.5786, 30.2062)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1D98 #56981D
analogous
#211D98 #5F1D98 #981D93
triadic
#5F1D98 #985F1D #1D985F
tetradic
#5F1D98 #98211D #56981D #1D9398
square
#5F1D98 #98211D #56981D #1D9398
split-complementary
#5F1D98 #93981D #1D9821
monochromatic
#1F0931 #3F1365 #5F1D98 #7F27CB #9D52DE

Accessibility & contrast

On white

9.93
#5F1D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5F1D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1D98
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1D98#FFFFFF#000000##FFFFFF
##5F1D981.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#533E5B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f1d98;
/* rgb */ color: rgb(95, 29, 152);
/* oklch */ color: oklch(40.6% 0.184 303.0);
Tailwind
colors: {
  custom: {
    50: '#9262b7',
    500: '#5f1d98',
    950: '#000000',
  },
}
SCSS
$custom: #5f1d98;
$custom-light: #9262b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1d98",
  "rgb": {
    "r": 95,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 272.195,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40553,
    "c": 0.18385,
    "h": 303
  },
  "luminance": 0.05579
}

Semantic roles & 50–950 ramp

primary
#5F1D98
secondary
#84C150
accent
#EB3D8E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #5F1D98

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

Preview Lab → · Contrast checker → · Palette generator →

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