#5F2597#5F2597

#5F2597 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.174 H 302.4°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#5F2597
RGBrgb(95, 37, 151)
HSLhsl(271, 61%, 37%)
HSVhsv(271, 75%, 59%)
CMYKcmyk(37.1%, 75.5%, 0%, 40.8%)
CIE-LABlab(29.39, 47.77, -51.67)
CIE-LCHlch(29.39, 70.37, 312.75°)
OKLaboklab(41.27% 0.0934 -0.1473)
OKLCHoklch(41.27% 0.174 302.4)
XYZxyz(10.9655, 5.9904, 29.8507)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2597 #5D9725
analogous
#262597 #5F2597 #972596
triadic
#5F2597 #975F25 #25975F
tetradic
#5F2597 #972625 #5D9725 #259697
square
#5F2597 #972625 #5D9725 #259697
split-complementary
#5F2597 #969725 #259726
monochromatic
#210D35 #401966 #5F2597 #7E31C8 #9C5FD8

Accessibility & contrast

On white

9.55
#5F2597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5F2597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2597
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2597#FFFFFF#000000##FFFFFF
##5F25971.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#53425C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f2597;
/* rgb */ color: rgb(95, 37, 151);
/* oklch */ color: oklch(41.3% 0.174 302.4);
Tailwind
colors: {
  custom: {
    50: '#9266b6',
    500: '#5f2597',
    950: '#000000',
  },
}
SCSS
$custom: #5f2597;
$custom-light: #9266b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2597",
  "rgb": {
    "r": 95,
    "g": 37,
    "b": 151
  },
  "hsl": {
    "h": 270.526,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41274,
    "c": 0.17445,
    "h": 302.4
  },
  "luminance": 0.0599
}

Semantic roles & 50–950 ramp

primary
#5F2597
secondary
#8BBD5B
accent
#E44492
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2597

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

Preview Lab → · Contrast checker → · Palette generator →

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