#5F2B7E#5F2B7E

#5F2B7E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.1% C 0.139 H 310.5°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#5F2B7E
RGBrgb(95, 43, 126)
HSLhsl(278, 49%, 33%)
HSVhsv(278, 66%, 49%)
CMYKcmyk(24.6%, 65.9%, 0%, 50.6%)
CIE-LABlab(28.56, 38.74, -37.50)
CIE-LCHlch(28.56, 53.92, 315.94°)
OKLaboklab(40.09% 0.0902 -0.1057)
OKLCHoklch(40.09% 0.139 310.5)
XYZxyz(9.3484, 5.6672, 20.3360)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2B7E #4A7E2B
analogous
#352B7E #5F2B7E #7E2B73
triadic
#5F2B7E #7E5F2B #2B7E5F
tetradic
#5F2B7E #7E352B #4A7E2B #2B737E
square
#5F2B7E #7E352B #4A7E2B #2B737E
split-complementary
#5F2B7E #737E2B #2B7E35
monochromatic
#1A0C23 #3D1B50 #5F2B7E #813BAC #9F5CC7

Accessibility & contrast

On white

9.84
#5F2B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5F2B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2B7E
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2B7E#FFFFFF#000000##FFFFFF
##5F2B7E1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004181
Deuteranopia (green-blind)
#21447C
Tritanopia (blue-blind)
#5B3B50
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f2b7e;
/* rgb */ color: rgb(95, 43, 126);
/* oklch */ color: oklch(40.1% 0.139 310.5);
Tailwind
colors: {
  custom: {
    50: '#8f68a4',
    500: '#5f2b7e',
    950: '#000000',
  },
}
SCSS
$custom: #5f2b7e;
$custom-light: #8f68a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2b7e",
  "rgb": {
    "r": 95,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 277.59,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.40089,
    "c": 0.13898,
    "h": 310.5
  },
  "luminance": 0.05667
}

Semantic roles & 50–950 ramp

primary
#5F2B7E
secondary
#78AD58
accent
#D94F83
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5F2B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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