#502EA8#502EA8

#502EA8 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.182 H 288.8°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#502EA8
RGBrgb(80, 46, 168)
HSLhsl(257, 57%, 42%)
HSVhsv(257, 73%, 66%)
CMYKcmyk(52.4%, 72.6%, 0%, 34.1%)
CIE-LABlab(30.61, 45.33, -60.07)
CIE-LCHlch(30.61, 75.26, 307.04°)
OKLaboklab(42.18% 0.0589 -0.1726)
OKLCHoklch(42.18% 0.182 288.8)
XYZxyz(11.3511, 6.4861, 37.6920)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502EA8 #86A82E
analogous
#2E49A8 #502EA8 #8D2EA8
triadic
#502EA8 #A8502E #2EA850
tetradic
#502EA8 #A82E49 #86A82E #2EA88D
square
#502EA8 #A82E49 #86A82E #2EA88D
split-complementary
#502EA8 #A88D2E #49A82E
monochromatic
#221448 #392178 #502EA8 #6C47CD #9277DA

Accessibility & contrast

On white

9.14
#502EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#502EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502EA8
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502EA8#FFFFFF#000000##FFFFFF
##502EA81.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#2F4E68
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #502ea8;
/* rgb */ color: rgb(80, 46, 168);
/* oklch */ color: oklch(42.2% 0.182 288.8);
Tailwind
colors: {
  custom: {
    50: '#8a6ac3',
    500: '#502ea8',
    950: '#000000',
  },
}
SCSS
$custom: #502ea8;
$custom-light: #8a6ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#502ea8",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 256.721,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42182,
    "c": 0.18235,
    "h": 288.8
  },
  "luminance": 0.06487
}

Semantic roles & 50–950 ramp

primary
#502EA8
secondary
#ABC270
accent
#E048B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #502EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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