#502ABD#502ABD

#502ABD is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.7% C 0.211 H 285.5°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#502ABD
RGBrgb(80, 42, 189)
HSLhsl(256, 64%, 45%)
HSVhsv(256, 78%, 74%)
CMYKcmyk(57.7%, 77.8%, 0%, 25.9%)
CIE-LABlab(31.89, 53.30, -70.48)
CIE-LCHlch(31.89, 88.37, 307.10°)
OKLaboklab(43.68% 0.0565 -0.203)
OKLCHoklch(43.68% 0.211 285.5)
XYZxyz(13.3188, 7.0347, 48.7903)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502ABD #97BD2A
analogous
#2A4EBD #502ABD #992ABD
triadic
#502ABD #BD502A #2ABD50
tetradic
#502ABD #BD2A4E #97BD2A #2ABD99
square
#502ABD #BD2A4E #97BD2A #2ABD99
split-complementary
#502ABD #BD992A #4EBD2A
monochromatic
#261459 #3B1F8B #502ABD #714DD7 #997FE3

Accessibility & contrast

On white

8.72
#502ABD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#502ABD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502ABD
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502ABD#FFFFFF#000000##FFFFFF
##502ABD1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC1
Deuteranopia (green-blind)
#0047BA
Tritanopia (blue-blind)
#165573
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #502abd;
/* rgb */ color: rgb(80, 42, 189);
/* oklch */ color: oklch(43.7% 0.211 285.5);
Tailwind
colors: {
  custom: {
    50: '#8e69d2',
    500: '#502abd',
    950: '#000000',
  },
}
SCSS
$custom: #502abd;
$custom-light: #8e69d2;
$custom-dark: #000000;
JSON
{
  "hex": "#502abd",
  "rgb": {
    "r": 80,
    "g": 42,
    "b": 189
  },
  "hsl": {
    "h": 255.51,
    "s": 63.636,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4368,
    "c": 0.21074,
    "h": 285.5
  },
  "luminance": 0.07036
}

Semantic roles & 50–950 ramp

primary
#502ABD
secondary
#B6CB78
accent
#E741BC
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #502ABD

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

Preview Lab → · Contrast checker → · Palette generator →

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