#5F2B9C#5F2B9C

#5F2B9C is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.173 H 300.0°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#5F2B9C
RGBrgb(95, 43, 156)
HSLhsl(268, 57%, 39%)
HSVhsv(268, 72%, 61%)
CMYKcmyk(39.1%, 72.4%, 0%, 38.8%)
CIE-LABlab(30.79, 46.23, -52.45)
CIE-LCHlch(30.79, 69.91, 311.39°)
OKLaboklab(42.39% 0.0865 -0.1497)
OKLCHoklch(42.39% 0.173 300)
XYZxyz(11.5825, 6.5608, 32.1022)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2B9C #689C2B
analogous
#2B2F9C #5F2B9C #982B9C
triadic
#5F2B9C #9C5F2B #2B9C5F
tetradic
#5F2B9C #9C2B2F #689C2B #2B9C98
square
#5F2B9C #9C2B2F #689C2B #2B9C98
split-complementary
#5F2B9C #9C982B #2F9C2B
monochromatic
#25113C #421E6C #5F2B9C #7C3BC9 #9C6BD6

Accessibility & contrast

On white

9.08
#5F2B9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2B9C
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2B9C#FFFFFF#000000##FFFFFF
##5F2B9C1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f2b9c;
/* rgb */ color: rgb(95, 43, 156);
/* oklch */ color: oklch(42.4% 0.173 300.0);
Tailwind
colors: {
  custom: {
    50: '#9269ba',
    500: '#5f2b9c',
    950: '#000000',
  },
}
SCSS
$custom: #5f2b9c;
$custom-light: #9269ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2b9c",
  "rgb": {
    "r": 95,
    "g": 43,
    "b": 156
  },
  "hsl": {
    "h": 267.611,
    "s": 56.784,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42389,
    "c": 0.17284,
    "h": 300
  },
  "luminance": 0.06561
}

Semantic roles & 50–950 ramp

primary
#5F2B9C
secondary
#95BD66
accent
#E0489A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5F2B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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