#5F2C9D#5F2C9D

#5F2C9D is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.173 H 299.6°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#5F2C9D
RGBrgb(95, 44, 157)
HSLhsl(267, 56%, 39%)
HSVhsv(267, 72%, 62%)
CMYKcmyk(39.5%, 72%, 0%, 38.4%)
CIE-LABlab(31.04, 46.00, -52.64)
CIE-LCHlch(31.04, 69.91, 311.15°)
OKLaboklab(42.6% 0.0853 -0.1502)
OKLCHoklch(42.6% 0.173 299.6)
XYZxyz(11.7043, 6.6685, 32.5623)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2C9D #6A9D2C
analogous
#2C319D #5F2C9D #982C9D
triadic
#5F2C9D #9D5F2C #2C9D5F
tetradic
#5F2C9D #9D2C31 #6A9D2C #2C9D98
square
#5F2C9D #9D2C31 #6A9D2C #2C9D98
split-complementary
#5F2C9D #9D982C #319D2C
monochromatic
#25113D #421F6D #5F2C9D #7C3DC9 #9D6DD6

Accessibility & contrast

On white

9.00
#5F2C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5F2C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2C9D
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2C9D#FFFFFF#000000##FFFFFF
##5F2C9D1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#00489B
Tritanopia (blue-blind)
#514861
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f2c9d;
/* rgb */ color: rgb(95, 44, 157);
/* oklch */ color: oklch(42.6% 0.173 299.6);
Tailwind
colors: {
  custom: {
    50: '#926abb',
    500: '#5f2c9d',
    950: '#000000',
  },
}
SCSS
$custom: #5f2c9d;
$custom-light: #926abb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2c9d",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 157
  },
  "hsl": {
    "h": 267.08,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42595,
    "c": 0.17273,
    "h": 299.6
  },
  "luminance": 0.06669
}

Semantic roles & 50–950 ramp

primary
#5F2C9D
secondary
#97BD68
accent
#E0489B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5F2C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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