#5F2D9C#5F2D9C

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

Color values

HEX#5F2D9C
RGBrgb(95, 45, 156)
HSLhsl(267, 55%, 39%)
HSVhsv(267, 71%, 61%)
CMYKcmyk(39.1%, 71.2%, 0%, 38.8%)
CIE-LABlab(31.14, 45.24, -51.88)
CIE-LCHlch(31.14, 68.83, 311.09°)
OKLaboklab(42.64% 0.0844 -0.148)
OKLCHoklch(42.64% 0.17 299.7)
XYZxyz(11.6570, 6.7098, 32.1270)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2D9C #6A9C2D
analogous
#2D339C #5F2D9C #972D9C
triadic
#5F2D9C #9C5F2D #2D9C5F
tetradic
#5F2D9C #9C2D33 #6A9C2D #2D9C97
square
#5F2D9C #9C2D33 #6A9C2D #2D9C97
split-complementary
#5F2D9C #9C972D #339C2D
monochromatic
#25123D #421F6D #5F2D9C #7C3FC8 #9D6ED5

Accessibility & contrast

On white

8.97
#5F2D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5F2D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2D9C
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2D9C#FFFFFF#000000##FFFFFF
##5F2D9C1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499F
Deuteranopia (green-blind)
#00489A
Tritanopia (blue-blind)
#514861
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f2d9c;
/* rgb */ color: rgb(95, 45, 156);
/* oklch */ color: oklch(42.6% 0.170 299.7);
Tailwind
colors: {
  custom: {
    50: '#926aba',
    500: '#5f2d9c',
    950: '#000000',
  },
}
SCSS
$custom: #5f2d9c;
$custom-light: #926aba;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2d9c",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 156
  },
  "hsl": {
    "h": 267.027,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42639,
    "c": 0.17037,
    "h": 299.7
  },
  "luminance": 0.0671
}

Semantic roles & 50–950 ramp

primary
#5F2D9C
secondary
#97BC68
accent
#DF499B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5F2D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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