#5F2F9F#5F2F9F

#5F2F9F is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.1% C 0.171 H 298.5°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#5F2F9F
RGBrgb(95, 47, 159)
HSLhsl(266, 54%, 40%)
HSVhsv(266, 70%, 62%)
CMYKcmyk(40.3%, 70.4%, 0%, 37.6%)
CIE-LABlab(31.74, 45.02, -52.72)
CIE-LCHlch(31.74, 69.33, 310.49°)
OKLaboklab(43.14% 0.0818 -0.1505)
OKLCHoklch(43.14% 0.171 298.5)
XYZxyz(11.9922, 6.9690, 33.5075)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2F9F #6F9F2F
analogous
#2F379F #5F2F9F #972F9F
triadic
#5F2F9F #9F5F2F #2F9F5F
tetradic
#5F2F9F #9F2F37 #6F9F2F #2F9F97
square
#5F2F9F #9F2F37 #6F9F2F #2F9F97
split-complementary
#5F2F9F #9F972F #379F2F
monochromatic
#271341 #432170 #5F2F9F #7C44C8 #9D73D6

Accessibility & contrast

On white

8.77
#5F2F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5F2F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2F9F
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2F9F#FFFFFF#000000##FFFFFF
##5F2F9F1.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#004A9D
Tritanopia (blue-blind)
#504A63
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f2f9f;
/* rgb */ color: rgb(95, 47, 159);
/* oklch */ color: oklch(43.1% 0.171 298.5);
Tailwind
colors: {
  custom: {
    50: '#926bbc',
    500: '#5f2f9f',
    950: '#000000',
  },
}
SCSS
$custom: #5f2f9f;
$custom-light: #926bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2f9f",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 265.714,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4314,
    "c": 0.17128,
    "h": 298.5
  },
  "luminance": 0.06969
}

Semantic roles & 50–950 ramp

primary
#5F2F9F
secondary
#9BBD6D
accent
#DE4A9E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5F2F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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