#5F2592#5F2592

#5F2592 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.169 H 304.0°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#5F2592
RGBrgb(95, 37, 146)
HSLhsl(272, 60%, 36%)
HSVhsv(272, 75%, 57%)
CMYKcmyk(34.9%, 74.7%, 0%, 42.7%)
CIE-LABlab(28.98, 46.54, -49.26)
CIE-LCHlch(28.98, 67.76, 313.37°)
OKLaboklab(40.86% 0.0945 -0.1402)
OKLCHoklch(40.86% 0.169 304)
XYZxyz(10.5680, 5.8314, 27.7574)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2592 #589225
analogous
#292592 #5F2592 #92258E
triadic
#5F2592 #925F25 #25925F
tetradic
#5F2592 #922925 #589225 #258E92
square
#5F2592 #922925 #589225 #258E92
split-complementary
#5F2592 #8E9225 #259229
monochromatic
#1F0C30 #3F1961 #5F2592 #7F31C3 #9D5CD6

Accessibility & contrast

On white

9.69
#5F2592 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5F2592 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2592
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2592#FFFFFF#000000##FFFFFF
##5F25921.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004395
Deuteranopia (green-blind)
#004490
Tritanopia (blue-blind)
#554059
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f2592;
/* rgb */ color: rgb(95, 37, 146);
/* oklch */ color: oklch(40.9% 0.169 304.0);
Tailwind
colors: {
  custom: {
    50: '#9165b3',
    500: '#5f2592',
    950: '#000000',
  },
}
SCSS
$custom: #5f2592;
$custom-light: #9165b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2592",
  "rgb": {
    "r": 95,
    "g": 37,
    "b": 146
  },
  "hsl": {
    "h": 271.927,
    "s": 59.563,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40861,
    "c": 0.1691,
    "h": 304
  },
  "luminance": 0.05831
}

Semantic roles & 50–950 ramp

primary
#5F2592
secondary
#86BA58
accent
#E3458F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2592

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

Preview Lab → · Contrast checker → · Palette generator →

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