#5F2E7E#5F2E7E

#5F2E7E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.5% C 0.134 H 310.0°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#5F2E7E
RGBrgb(95, 46, 126)
HSLhsl(277, 47%, 34%)
HSVhsv(277, 63%, 49%)
CMYKcmyk(24.6%, 63.5%, 0%, 50.6%)
CIE-LABlab(29.14, 37.15, -36.56)
CIE-LCHlch(29.14, 52.12, 315.46°)
OKLaboklab(40.51% 0.0863 -0.103)
OKLCHoklch(40.51% 0.134 310)
XYZxyz(9.4615, 5.8934, 20.3737)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2E7E #4D7E2E
analogous
#372E7E #5F2E7E #7E2E75
triadic
#5F2E7E #7E5F2E #2E7E5F
tetradic
#5F2E7E #7E372E #4D7E2E #2E757E
square
#5F2E7E #7E372E #4D7E2E #2E757E
split-complementary
#5F2E7E #757E2E #2E7E37
monochromatic
#1B0D24 #3D1E51 #5F2E7E #813EAB #9E61C5

Accessibility & contrast

On white

9.64
#5F2E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5F2E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2E7E
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2E7E#FFFFFF#000000##FFFFFF
##5F2E7E1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4281
Deuteranopia (green-blind)
#24457C
Tritanopia (blue-blind)
#5B3D51
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f2e7e;
/* rgb */ color: rgb(95, 46, 126);
/* oklch */ color: oklch(40.5% 0.134 310.0);
Tailwind
colors: {
  custom: {
    50: '#8f6aa4',
    500: '#5f2e7e',
    950: '#000000',
  },
}
SCSS
$custom: #5f2e7e;
$custom-light: #8f6aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2e7e",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 126
  },
  "hsl": {
    "h": 276.75,
    "s": 46.512,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40512,
    "c": 0.13436,
    "h": 310
  },
  "luminance": 0.05893
}

Semantic roles & 50–950 ramp

primary
#5F2E7E
secondary
#7BAC5C
accent
#D65285
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5F2E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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