#502B91#502B91

#502B91 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.8% C 0.158 H 294.8°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#502B91
RGBrgb(80, 43, 145)
HSLhsl(262, 54%, 37%)
HSVhsv(262, 70%, 57%)
CMYKcmyk(44.8%, 70.3%, 0%, 43.1%)
CIE-LABlab(28.05, 40.36, -50.24)
CIE-LCHlch(28.05, 64.44, 308.78°)
OKLaboklab(39.75% 0.0663 -0.1437)
OKLCHoklch(39.75% 0.158 294.8)
XYZxyz(9.2816, 5.4773, 27.3508)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502B91 #6C912B
analogous
#2B3991 #502B91 #832B91
triadic
#502B91 #91502B #2B9150
tetradic
#502B91 #912B39 #6C912B #2B9183
square
#502B91 #912B39 #6C912B #2B9183
split-complementary
#502B91 #91832B #39912B
monochromatic
#1C0F33 #361D62 #502B91 #6A39C0 #8C65D1

Accessibility & contrast

On white

10.02
#502B91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#502B91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502B91
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502B91#FFFFFF#000000##FFFFFF
##502B911.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004394
Deuteranopia (green-blind)
#00418F
Tritanopia (blue-blind)
#3E445A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #502b91;
/* rgb */ color: rgb(80, 43, 145);
/* oklch */ color: oklch(39.8% 0.158 294.8);
Tailwind
colors: {
  custom: {
    50: '#8767b2',
    500: '#502b91',
    950: '#000000',
  },
}
SCSS
$custom: #502b91;
$custom-light: #8767b2;
$custom-dark: #000000;
JSON
{
  "hex": "#502b91",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 145
  },
  "hsl": {
    "h": 261.765,
    "s": 54.255,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39751,
    "c": 0.15825,
    "h": 294.8
  },
  "luminance": 0.05478
}

Semantic roles & 50–950 ramp

primary
#502B91
secondary
#98B860
accent
#DE4AA8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502B91

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

Preview Lab → · Contrast checker → · Palette generator →

#502B91 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva