#5F2C9C#5F2C9C

#5F2C9C is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.172 H 299.9°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#5F2C9C
RGBrgb(95, 44, 156)
HSLhsl(267, 56%, 39%)
HSVhsv(267, 72%, 61%)
CMYKcmyk(39.1%, 71.8%, 0%, 38.8%)
CIE-LABlab(30.96, 45.74, -52.17)
CIE-LCHlch(30.96, 69.38, 311.24°)
OKLaboklab(42.51% 0.0854 -0.1488)
OKLCHoklch(42.51% 0.172 299.9)
XYZxyz(11.6193, 6.6344, 32.1145)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2C9C #699C2C
analogous
#2C319C #5F2C9C #972C9C
triadic
#5F2C9C #9C5F2C #2C9C5F
tetradic
#5F2C9C #9C2C31 #699C2C #2C9C97
square
#5F2C9C #9C2C31 #699C2C #2C9C97
split-complementary
#5F2C9C #9C972C #319C2C
monochromatic
#25113D #421F6C #5F2C9C #7C3DC8 #9D6DD6

Accessibility & contrast

On white

9.02
#5F2C9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2C9C
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2C9C#FFFFFF#000000##FFFFFF
##5F2C9C1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f2c9c;
/* rgb */ color: rgb(95, 44, 156);
/* oklch */ color: oklch(42.5% 0.172 299.9);
Tailwind
colors: {
  custom: {
    50: '#926aba',
    500: '#5f2c9c',
    950: '#000000',
  },
}
SCSS
$custom: #5f2c9c;
$custom-light: #926aba;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2c9c",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 156
  },
  "hsl": {
    "h": 267.321,
    "s": 56,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42513,
    "c": 0.17161,
    "h": 299.9
  },
  "luminance": 0.06635
}

Semantic roles & 50–950 ramp

primary
#5F2C9C
secondary
#96BD67
accent
#DF499B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5F2C9C

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

Preview Lab → · Contrast checker → · Palette generator →

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