#5F2BA9#5F2BA9

#5F2BA9 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.5% C 0.187 H 296.5°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#5F2BA9
RGBrgb(95, 43, 169)
HSLhsl(265, 59%, 42%)
HSVhsv(265, 75%, 66%)
CMYKcmyk(43.8%, 74.6%, 0%, 33.7%)
CIE-LABlab(31.86, 49.60, -58.55)
CIE-LCHlch(31.86, 76.73, 310.27°)
OKLaboklab(43.49% 0.0837 -0.1676)
OKLCHoklch(43.49% 0.187 296.5)
XYZxyz(12.7427, 7.0249, 38.2130)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2BA9 #75A92B
analogous
#2B36A9 #5F2BA9 #9E2BA9
triadic
#5F2BA9 #A95F2B #2BA95F
tetradic
#5F2BA9 #A92B36 #75A92B #2BA99E
square
#5F2BA9 #A92B36 #75A92B #2BA99E
split-complementary
#5F2BA9 #A99E2B #36A92B
monochromatic
#281247 #441F78 #5F2BA9 #7C42CF #9E73DB

Accessibility & contrast

On white

8.73
#5F2BA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5F2BA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2BA9
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2BA9#FFFFFF#000000##FFFFFF
##5F2BA91.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAD
Deuteranopia (green-blind)
#0049A7
Tritanopia (blue-blind)
#4B4C68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f2ba9;
/* rgb */ color: rgb(95, 43, 169);
/* oklch */ color: oklch(43.5% 0.187 296.5);
Tailwind
colors: {
  custom: {
    50: '#936ac4',
    500: '#5f2ba9',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ba9;
$custom-light: #936ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ba9",
  "rgb": {
    "r": 95,
    "g": 43,
    "b": 169
  },
  "hsl": {
    "h": 264.762,
    "s": 59.434,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43487,
    "c": 0.1873,
    "h": 296.5
  },
  "luminance": 0.07025
}

Semantic roles & 50–950 ramp

primary
#5F2BA9
secondary
#9FC36D
accent
#E345A2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2BA9

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

Preview Lab → · Contrast checker → · Palette generator →

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