#502AB2#502AB2

#502AB2 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.198 H 287.5°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#502AB2
RGBrgb(80, 42, 178)
HSLhsl(257, 62%, 43%)
HSVhsv(257, 76%, 70%)
CMYKcmyk(55.1%, 76.4%, 0%, 30.2%)
CIE-LABlab(30.82, 50.20, -65.71)
CIE-LCHlch(30.82, 82.70, 307.38°)
OKLaboklab(42.61% 0.0596 -0.1891)
OKLCHoklch(42.61% 0.198 287.5)
XYZxyz(12.1697, 6.5751, 42.7387)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502AB2 #8CB22A
analogous
#2A48B2 #502AB2 #942AB2
triadic
#502AB2 #B2502A #2AB250
tetradic
#502AB2 #B22A48 #8CB22A #2AB294
square
#502AB2 #B22A48 #8CB22A #2AB294
split-complementary
#502AB2 #B2942A #48B22A
monochromatic
#23134F #3A1E80 #502AB2 #6D46D3 #9477DF

Accessibility & contrast

On white

9.07
#502AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#502AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502AB2
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502AB2#FFFFFF#000000##FFFFFF
##502AB21.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB6
Deuteranopia (green-blind)
#0045AF
Tritanopia (blue-blind)
#26506D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #502ab2;
/* rgb */ color: rgb(80, 42, 178);
/* oklch */ color: oklch(42.6% 0.198 287.5);
Tailwind
colors: {
  custom: {
    50: '#8c68ca',
    500: '#502ab2',
    950: '#000000',
  },
}
SCSS
$custom: #502ab2;
$custom-light: #8c68ca;
$custom-dark: #000000;
JSON
{
  "hex": "#502ab2",
  "rgb": {
    "r": 80,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 256.765,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42613,
    "c": 0.19825,
    "h": 287.5
  },
  "luminance": 0.06576
}

Semantic roles & 50–950 ramp

primary
#502AB2
secondary
#AFC771
accent
#E543B8
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #502AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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