#5F1B92#5F1B92

#5F1B92 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.180 H 305.1°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#5F1B92
RGBrgb(95, 27, 146)
HSLhsl(274, 69%, 34%)
HSVhsv(274, 82%, 57%)
CMYKcmyk(34.9%, 81.5%, 0%, 42.7%)
CIE-LABlab(27.55, 50.65, -51.59)
CIE-LCHlch(27.55, 72.29, 314.47°)
OKLaboklab(39.86% 0.1035 -0.147)
OKLCHoklch(39.86% 0.18 305.1)
XYZxyz(10.2984, 5.2921, 27.6675)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1B92 #4E921B
analogous
#241B92 #5F1B92 #921B8A
triadic
#5F1B92 #925F1B #1B925F
tetradic
#5F1B92 #92241B #4E921B #1B8A92
square
#5F1B92 #92241B #4E921B #1B8A92
split-complementary
#5F1B92 #8A921B #1B9224
monochromatic
#1C082B #3D115E #5F1B92 #8125C6 #9E4ADE

Accessibility & contrast

On white

10.20
#5F1B92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5F1B92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1B92
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1B92#FFFFFF#000000##FFFFFF
##5F1B921.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F95
Deuteranopia (green-blind)
#004190
Tritanopia (blue-blind)
#553B57
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f1b92;
/* rgb */ color: rgb(95, 27, 146);
/* oklch */ color: oklch(39.9% 0.180 305.1);
Tailwind
colors: {
  custom: {
    50: '#9261b3',
    500: '#5f1b92',
    950: '#000000',
  },
}
SCSS
$custom: #5f1b92;
$custom-light: #9261b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1b92",
  "rgb": {
    "r": 95,
    "g": 27,
    "b": 146
  },
  "hsl": {
    "h": 274.286,
    "s": 68.786,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39856,
    "c": 0.17979,
    "h": 305.1
  },
  "luminance": 0.05292
}

Semantic roles & 50–950 ramp

primary
#5F1B92
secondary
#7CBF49
accent
#EC3C87
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #5F1B92

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

Preview Lab → · Contrast checker → · Palette generator →

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