#5F1F93#5F1F93

#5F1F93 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.177 H 304.4°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#5F1F93
RGBrgb(95, 31, 147)
HSLhsl(273, 65%, 35%)
HSVhsv(273, 79%, 58%)
CMYKcmyk(35.4%, 78.9%, 0%, 42.4%)
CIE-LABlab(28.17, 49.35, -51.20)
CIE-LCHlch(28.17, 71.11, 313.94°)
OKLaboklab(40.31% 0.0999 -0.1459)
OKLCHoklch(40.31% 0.177 304.4)
XYZxyz(10.4746, 5.5195, 28.1117)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1F93 #53931F
analogous
#251F93 #5F1F93 #931F8D
triadic
#5F1F93 #935F1F #1F935F
tetradic
#5F1F93 #93251F #53931F #1F8D93
square
#5F1F93 #93251F #53931F #1F8D93
split-complementary
#5F1F93 #8D931F #1F9325
monochromatic
#1E0A2E #3E1460 #5F1F93 #802AC6 #9D52DA

Accessibility & contrast

On white

9.98
#5F1F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5F1F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1F93
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1F93#FFFFFF#000000##FFFFFF
##5F1F931.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004196
Deuteranopia (green-blind)
#004291
Tritanopia (blue-blind)
#553D58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f1f93;
/* rgb */ color: rgb(95, 31, 147);
/* oklch */ color: oklch(40.3% 0.177 304.4);
Tailwind
colors: {
  custom: {
    50: '#9262b4',
    500: '#5f1f93',
    950: '#000000',
  },
}
SCSS
$custom: #5f1f93;
$custom-light: #9262b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1f93",
  "rgb": {
    "r": 95,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 273.103,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40312,
    "c": 0.17682,
    "h": 304.4
  },
  "luminance": 0.05519
}

Semantic roles & 50–950 ramp

primary
#5F1F93
secondary
#81BE50
accent
#E8408B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F1F93

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

Preview Lab → · Contrast checker → · Palette generator →

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