#5F2E83#5F2E83

#5F2E83 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.140 H 307.9°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#5F2E83
RGBrgb(95, 46, 131)
HSLhsl(275, 48%, 35%)
HSVhsv(275, 65%, 51%)
CMYKcmyk(27.5%, 64.9%, 0%, 48.6%)
CIE-LABlab(29.48, 38.37, -39.16)
CIE-LCHlch(29.48, 54.82, 314.42°)
OKLaboklab(40.86% 0.0861 -0.1106)
OKLCHoklch(40.86% 0.14 307.9)
XYZxyz(9.7922, 6.0257, 22.1156)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2E83 #52832E
analogous
#342E83 #5F2E83 #832E7D
triadic
#5F2E83 #835F2E #2E835F
tetradic
#5F2E83 #83342E #52832E #2E7D83
square
#5F2E83 #83342E #52832E #2E7D83
split-complementary
#5F2E83 #7D832E #2E8334
monochromatic
#1D0E28 #3E1E56 #5F2E83 #803EB0 #9D63C8

Accessibility & contrast

On white

9.52
#5F2E83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5F2E83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2E83
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2E83#FFFFFF#000000##FFFFFF
##5F2E831.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004486
Deuteranopia (green-blind)
#1F4681
Tritanopia (blue-blind)
#593F54
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f2e83;
/* rgb */ color: rgb(95, 46, 131);
/* oklch */ color: oklch(40.9% 0.140 307.9);
Tailwind
colors: {
  custom: {
    50: '#8f6aa8',
    500: '#5f2e83',
    950: '#000000',
  },
}
SCSS
$custom: #5f2e83;
$custom-light: #8f6aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2e83",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 131
  },
  "hsl": {
    "h": 274.588,
    "s": 48.023,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40863,
    "c": 0.14018,
    "h": 307.9
  },
  "luminance": 0.06026
}

Semantic roles & 50–950 ramp

primary
#5F2E83
secondary
#80AF5E
accent
#D8508A
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D070F
muted
#7E7A7F

Preview Lab

Preview with #5F2E83

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

Preview Lab → · Contrast checker → · Palette generator →

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