#502B95#502B95

#502B95 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.1% C 0.163 H 293.7°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#502B95
RGBrgb(80, 43, 149)
HSLhsl(261, 55%, 38%)
HSVhsv(261, 71%, 58%)
CMYKcmyk(46.3%, 71.1%, 0%, 41.6%)
CIE-LABlab(28.39, 41.49, -52.15)
CIE-LCHlch(28.39, 66.64, 308.50°)
OKLaboklab(40.09% 0.0656 -0.1493)
OKLCHoklch(40.09% 0.163 293.7)
XYZxyz(9.5955, 5.6029, 29.0038)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502B95 #70952B
analogous
#2B3B95 #502B95 #852B95
triadic
#502B95 #95502B #2B9550
tetradic
#502B95 #952B3B #70952B #2B9585
square
#502B95 #952B3B #70952B #2B9585
split-complementary
#502B95 #95852B #3B952B
monochromatic
#1D1036 #361D66 #502B95 #6939C4 #8D67D3

Accessibility & contrast

On white

9.90
#502B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#502B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502B95
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502B95#FFFFFF#000000##FFFFFF
##502B951.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004498
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#3C465D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #502b95;
/* rgb */ color: rgb(80, 43, 149);
/* oklch */ color: oklch(40.1% 0.163 293.7);
Tailwind
colors: {
  custom: {
    50: '#8867b5',
    500: '#502b95',
    950: '#000000',
  },
}
SCSS
$custom: #502b95;
$custom-light: #8867b5;
$custom-dark: #000000;
JSON
{
  "hex": "#502b95",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 149
  },
  "hsl": {
    "h": 260.943,
    "s": 55.208,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40094,
    "c": 0.16309,
    "h": 293.7
  },
  "luminance": 0.05603
}

Semantic roles & 50–950 ramp

primary
#502B95
secondary
#9BBA62
accent
#DF49AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502B95

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

Preview Lab → · Contrast checker → · Palette generator →

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