#5F2B8B#5F2B8B

#5F2B8B is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.154 H 305.4°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#5F2B8B
RGBrgb(95, 43, 139)
HSLhsl(273, 53%, 36%)
HSVhsv(273, 69%, 55%)
CMYKcmyk(31.7%, 69.1%, 0%, 45.5%)
CIE-LABlab(29.47, 41.92, -44.14)
CIE-LCHlch(29.47, 60.87, 313.53°)
OKLaboklab(41.04% 0.0891 -0.1252)
OKLCHoklch(41.04% 0.154 305.4)
XYZxyz(10.2424, 6.0248, 25.0444)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2B8B #578B2B
analogous
#2F2B8B #5F2B8B #8B2B87
triadic
#5F2B8B #8B5F2B #2B8B5F
tetradic
#5F2B8B #8B2F2B #578B2B #2B878B
square
#5F2B8B #8B2F2B #578B2B #2B878B
split-complementary
#5F2B8B #878B2B #2B8B2F
monochromatic
#1F0E2E #3F1D5C #5F2B8B #7F39BA #9D62CE

Accessibility & contrast

On white

9.52
#5F2B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5F2B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2B8B
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2B8B#FFFFFF#000000##FFFFFF
##5F2B8B1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#0D4689
Tritanopia (blue-blind)
#574057
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f2b8b;
/* rgb */ color: rgb(95, 43, 139);
/* oklch */ color: oklch(41.0% 0.154 305.4);
Tailwind
colors: {
  custom: {
    50: '#9068ad',
    500: '#5f2b8b',
    950: '#000000',
  },
}
SCSS
$custom: #5f2b8b;
$custom-light: #9068ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2b8b",
  "rgb": {
    "r": 95,
    "g": 43,
    "b": 139
  },
  "hsl": {
    "h": 272.5,
    "s": 52.747,
    "l": 35.686
  },
  "oklch": {
    "l": 0.41042,
    "c": 0.1537,
    "h": 305.4
  },
  "luminance": 0.06025
}

Semantic roles & 50–950 ramp

primary
#5F2B8B
secondary
#85B55D
accent
#DC4C8E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F2B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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