#5F2C97#5F2C97

#5F2C97 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.166 H 301.3°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#5F2C97
RGBrgb(95, 44, 151)
HSLhsl(269, 55%, 38%)
HSVhsv(269, 71%, 59%)
CMYKcmyk(37.1%, 70.9%, 0%, 40.8%)
CIE-LABlab(30.57, 44.45, -49.76)
CIE-LCHlch(30.57, 66.72, 311.78°)
OKLaboklab(42.11% 0.0863 -0.1417)
OKLCHoklch(42.11% 0.166 301.3)
XYZxyz(11.2046, 6.4686, 29.9304)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2C97 #64972C
analogous
#2C2E97 #5F2C97 #942C97
triadic
#5F2C97 #975F2C #2C975F
tetradic
#5F2C97 #972C2E #64972C #2C9794
square
#5F2C97 #972C2E #64972C #2C9794
split-complementary
#5F2C97 #97942C #2E972C
monochromatic
#231038 #411E68 #5F2C97 #7D3AC6 #9C6AD4

Accessibility & contrast

On white

9.16
#5F2C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5F2C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2C97
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2C97#FFFFFF#000000##FFFFFF
##5F2C971.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#53455E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f2c97;
/* rgb */ color: rgb(95, 44, 151);
/* oklch */ color: oklch(42.1% 0.166 301.3);
Tailwind
colors: {
  custom: {
    50: '#9169b6',
    500: '#5f2c97',
    950: '#000000',
  },
}
SCSS
$custom: #5f2c97;
$custom-light: #9169b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2c97",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 268.598,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42108,
    "c": 0.16596,
    "h": 301.3
  },
  "luminance": 0.06469
}

Semantic roles & 50–950 ramp

primary
#5F2C97
secondary
#91BA65
accent
#DE4A97
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F2C97

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

Preview Lab → · Contrast checker → · Palette generator →

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