#5E2B83#5E2B83

#5E2B83 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.144 H 307.8°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#5E2B83
RGBrgb(94, 43, 131)
HSLhsl(275, 51%, 34%)
HSVhsv(275, 67%, 51%)
CMYKcmyk(28.2%, 67.2%, 0%, 48.6%)
CIE-LABlab(28.76, 39.71, -40.31)
CIE-LCHlch(28.76, 56.59, 314.57°)
OKLaboklab(40.32% 0.0885 -0.114)
OKLCHoklch(40.32% 0.144 307.8)
XYZxyz(9.5759, 5.7463, 22.0730)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2B83 #50832B
analogous
#322B83 #5E2B83 #832B7C
triadic
#5E2B83 #835E2B #2B835E
tetradic
#5E2B83 #83322B #50832B #2B7C83
square
#5E2B83 #83322B #50832B #2B7C83
split-complementary
#5E2B83 #7C832B #2B8332
monochromatic
#1C0D27 #3D1C55 #5E2B83 #7F3AB1 #9D5ECA

Accessibility & contrast

On white

9.77
#5E2B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5E2B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2B83
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2B83#FFFFFF#000000##FFFFFF
##5E2B831.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004286
Deuteranopia (green-blind)
#1A4481
Tritanopia (blue-blind)
#583D53
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e2b83;
/* rgb */ color: rgb(94, 43, 131);
/* oklch */ color: oklch(40.3% 0.144 307.8);
Tailwind
colors: {
  custom: {
    50: '#8f68a8',
    500: '#5e2b83',
    950: '#000000',
  },
}
SCSS
$custom: #5e2b83;
$custom-light: #8f68a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2b83",
  "rgb": {
    "r": 94,
    "g": 43,
    "b": 131
  },
  "hsl": {
    "h": 274.773,
    "s": 50.575,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40318,
    "c": 0.14432,
    "h": 307.8
  },
  "luminance": 0.05746
}

Semantic roles & 50–950 ramp

primary
#5E2B83
secondary
#7EB05A
accent
#DA4E89
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5E2B83

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

Preview Lab → · Contrast checker → · Palette generator →

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