#502B9B#502B9B

#502B9B is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.170 H 292.2°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#502B9B
RGBrgb(80, 43, 155)
HSLhsl(260, 57%, 39%)
HSVhsv(260, 72%, 61%)
CMYKcmyk(48.4%, 72.3%, 0%, 39.2%)
CIE-LABlab(28.90, 43.19, -54.99)
CIE-LCHlch(28.90, 69.92, 308.15°)
OKLaboklab(40.62% 0.0644 -0.1577)
OKLCHoklch(40.62% 0.17 292.2)
XYZxyz(10.0869, 5.7994, 31.5919)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502B9B #769B2B
analogous
#2B3E9B #502B9B #882B9B
triadic
#502B9B #9B502B #2B9B50
tetradic
#502B9B #9B2B3E #769B2B #2B9B88
square
#502B9B #9B2B3E #769B2B #2B9B88
split-complementary
#502B9B #9B882B #3E9B2B
monochromatic
#1F103B #371E6B #502B9B #6A3BC9 #8E6BD6

Accessibility & contrast

On white

9.72
#502B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#502B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502B9B
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502B9B#FFFFFF#000000##FFFFFF
##502B9B1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#004299
Tritanopia (blue-blind)
#394860
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #502b9b;
/* rgb */ color: rgb(80, 43, 155);
/* oklch */ color: oklch(40.6% 0.170 292.2);
Tailwind
colors: {
  custom: {
    50: '#8868b9',
    500: '#502b9b',
    950: '#000000',
  },
}
SCSS
$custom: #502b9b;
$custom-light: #8868b9;
$custom-dark: #000000;
JSON
{
  "hex": "#502b9b",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 155
  },
  "hsl": {
    "h": 259.821,
    "s": 56.566,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40618,
    "c": 0.17029,
    "h": 292.2
  },
  "luminance": 0.058
}

Semantic roles & 50–950 ramp

primary
#502B9B
secondary
#A0BC65
accent
#E048AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #502B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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