#502AA2#502AA2

#502AA2 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.180 H 290.8°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#502AA2
RGBrgb(80, 42, 162)
HSLhsl(259, 59%, 40%)
HSVhsv(259, 74%, 64%)
CMYKcmyk(50.6%, 74.1%, 0%, 36.5%)
CIE-LABlab(29.34, 45.68, -58.53)
CIE-LCHlch(29.34, 74.25, 307.97°)
OKLaboklab(41.12% 0.0637 -0.168)
OKLCHoklch(41.12% 0.18 290.8)
XYZxyz(10.6560, 5.9696, 34.7662)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502AA2 #7CA22A
analogous
#2A40A2 #502AA2 #8C2AA2
triadic
#502AA2 #A2502A #2AA250
tetradic
#502AA2 #A22A40 #7CA22A #2AA28C
square
#502AA2 #A22A40 #7CA22A #2AA28C
split-complementary
#502AA2 #A28C2A #40A22A
monochromatic
#201141 #381D71 #502AA2 #6A3DCD #8F6DD9

Accessibility & contrast

On white

9.57
#502AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#502AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502AA2
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502AA2#FFFFFF#000000##FFFFFF
##502AA21.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#0042A0
Tritanopia (blue-blind)
#344A64
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #502aa2;
/* rgb */ color: rgb(80, 42, 162);
/* oklch */ color: oklch(41.1% 0.180 290.8);
Tailwind
colors: {
  custom: {
    50: '#8967bf',
    500: '#502aa2',
    950: '#000000',
  },
}
SCSS
$custom: #502aa2;
$custom-light: #8967bf;
$custom-dark: #000000;
JSON
{
  "hex": "#502aa2",
  "rgb": {
    "r": 80,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 259,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.41117,
    "c": 0.17972,
    "h": 290.8
  },
  "luminance": 0.0597
}

Semantic roles & 50–950 ramp

primary
#502AA2
secondary
#A4C068
accent
#E246B1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #502AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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