#5F2B95#5F2B95

#5F2B95 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.165 H 302.1°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#5F2B95
RGBrgb(95, 43, 149)
HSLhsl(269, 55%, 38%)
HSVhsv(269, 71%, 58%)
CMYKcmyk(36.2%, 71.1%, 0%, 41.6%)
CIE-LABlab(30.23, 44.44, -49.07)
CIE-LCHlch(30.23, 66.20, 312.16°)
OKLaboklab(41.82% 0.0877 -0.1397)
OKLCHoklch(41.82% 0.165 302.1)
XYZxyz(11.0067, 6.3305, 29.0700)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2B95 #61952B
analogous
#2B2C95 #5F2B95 #942B95
triadic
#5F2B95 #955F2B #2B955F
tetradic
#5F2B95 #952B2C #61952B #2B9594
square
#5F2B95 #952B2C #61952B #2B9594
split-complementary
#5F2B95 #95942B #2C952B
monochromatic
#221036 #411D66 #5F2B95 #7D39C4 #9C67D3

Accessibility & contrast

On white

9.27
#5F2B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5F2B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2B95
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2B95#FFFFFF#000000##FFFFFF
##5F2B951.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004698
Deuteranopia (green-blind)
#004793
Tritanopia (blue-blind)
#54445D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f2b95;
/* rgb */ color: rgb(95, 43, 149);
/* oklch */ color: oklch(41.8% 0.165 302.1);
Tailwind
colors: {
  custom: {
    50: '#9169b5',
    500: '#5f2b95',
    950: '#000000',
  },
}
SCSS
$custom: #5f2b95;
$custom-light: #9169b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2b95",
  "rgb": {
    "r": 95,
    "g": 43,
    "b": 149
  },
  "hsl": {
    "h": 269.434,
    "s": 55.208,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41821,
    "c": 0.16498,
    "h": 302.1
  },
  "luminance": 0.06331
}

Semantic roles & 50–950 ramp

primary
#5F2B95
secondary
#8FBA62
accent
#DF4995
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2B95

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

Preview Lab → · Contrast checker → · Palette generator →

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