#5F2C8B#5F2C8B

#5F2C8B is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.152 H 305.3°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#5F2C8B
RGBrgb(95, 44, 139)
HSLhsl(272, 52%, 36%)
HSVhsv(272, 68%, 55%)
CMYKcmyk(31.7%, 68.3%, 0%, 45.5%)
CIE-LABlab(29.66, 41.41, -43.84)
CIE-LCHlch(29.66, 60.30, 313.37°)
OKLaboklab(41.17% 0.088 -0.1243)
OKLCHoklch(41.17% 0.152 305.3)
XYZxyz(10.2792, 6.0984, 25.0567)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2C8B #588B2C
analogous
#2F2C8B #5F2C8B #8B2C87
triadic
#5F2C8B #8B5F2C #2C8B5F
tetradic
#5F2C8B #8B2F2C #588B2C #2C878B
square
#5F2C8B #8B2F2C #588B2C #2C878B
split-complementary
#5F2C8B #878B2C #2C8B2F
monochromatic
#1F0F2E #3F1D5D #5F2C8B #7F3BB9 #9D64CE

Accessibility & contrast

On white

9.46
#5F2C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5F2C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2C8B
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2C8B#FFFFFF#000000##FFFFFF
##5F2C8B1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#0F4689
Tritanopia (blue-blind)
#574157
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f2c8b;
/* rgb */ color: rgb(95, 44, 139);
/* oklch */ color: oklch(41.2% 0.152 305.3);
Tailwind
colors: {
  custom: {
    50: '#9069ad',
    500: '#5f2c8b',
    950: '#000000',
  },
}
SCSS
$custom: #5f2c8b;
$custom-light: #9069ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2c8b",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 272.211,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41174,
    "c": 0.15231,
    "h": 305.3
  },
  "luminance": 0.06098
}

Semantic roles & 50–950 ramp

primary
#5F2C8B
secondary
#86B45F
accent
#DB4C8F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F2C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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