#5F2B9B#5F2B9B

#5F2B9B is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.172 H 300.3°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#5F2B9B
RGBrgb(95, 43, 155)
HSLhsl(268, 57%, 39%)
HSVhsv(268, 72%, 61%)
CMYKcmyk(38.7%, 72.3%, 0%, 39.2%)
CIE-LABlab(30.71, 45.97, -51.97)
CIE-LCHlch(30.71, 69.38, 311.49°)
OKLaboklab(42.31% 0.0867 -0.1482)
OKLCHoklch(42.31% 0.172 300.3)
XYZxyz(11.4981, 6.5271, 31.6581)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2B9B #679B2B
analogous
#2B2F9B #5F2B9B #972B9B
triadic
#5F2B9B #9B5F2B #2B9B5F
tetradic
#5F2B9B #9B2B2F #679B2B #2B9B97
square
#5F2B9B #9B2B2F #679B2B #2B9B97
split-complementary
#5F2B9B #9B972B #2F9B2B
monochromatic
#24103B #421E6B #5F2B9B #7D3BC9 #9C6BD6

Accessibility & contrast

On white

9.11
#5F2B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5F2B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2B9B
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2B9B#FFFFFF#000000##FFFFFF
##5F2B9B1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#004799
Tritanopia (blue-blind)
#514660
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f2b9b;
/* rgb */ color: rgb(95, 43, 155);
/* oklch */ color: oklch(42.3% 0.172 300.3);
Tailwind
colors: {
  custom: {
    50: '#9269b9',
    500: '#5f2b9b',
    950: '#000000',
  },
}
SCSS
$custom: #5f2b9b;
$custom-light: #9269b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2b9b",
  "rgb": {
    "r": 95,
    "g": 43,
    "b": 155
  },
  "hsl": {
    "h": 267.857,
    "s": 56.566,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42307,
    "c": 0.17172,
    "h": 300.3
  },
  "luminance": 0.06527
}

Semantic roles & 50–950 ramp

primary
#5F2B9B
secondary
#94BC65
accent
#E04899
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5F2B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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