#5F2997#5F2997

#5F2997 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.170 H 301.8°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#5F2997
RGBrgb(95, 41, 151)
HSLhsl(269, 57%, 38%)
HSVhsv(269, 73%, 59%)
CMYKcmyk(37.1%, 72.8%, 0%, 40.8%)
CIE-LABlab(30.04, 45.92, -50.61)
CIE-LCHlch(30.04, 68.33, 312.22°)
OKLaboklab(41.74% 0.0895 -0.1442)
OKLCHoklch(41.74% 0.17 301.8)
XYZxyz(11.0968, 6.2531, 29.8945)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2997 #619729
analogous
#292A97 #5F2997 #962997
triadic
#5F2997 #975F29 #29975F
tetradic
#5F2997 #97292A #619729 #299796
square
#5F2997 #97292A #619729 #299796
split-complementary
#5F2997 #979629 #2A9729
monochromatic
#220F37 #411C67 #5F2997 #7D36C7 #9C65D5

Accessibility & contrast

On white

9.33
#5F2997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5F2997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2997
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2997#FFFFFF#000000##FFFFFF
##5F29971.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#53445D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f2997;
/* rgb */ color: rgb(95, 41, 151);
/* oklch */ color: oklch(41.7% 0.170 301.8);
Tailwind
colors: {
  custom: {
    50: '#9268b6',
    500: '#5f2997',
    950: '#000000',
  },
}
SCSS
$custom: #5f2997;
$custom-light: #9268b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2997",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 269.455,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41736,
    "c": 0.16972,
    "h": 301.8
  },
  "luminance": 0.06253
}

Semantic roles & 50–950 ramp

primary
#5F2997
secondary
#8FBB61
accent
#E14795
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2997

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

Preview Lab → · Contrast checker → · Palette generator →

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