#502FA1#502FA1

#502FA1 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.173 H 290.1°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#502FA1
RGBrgb(80, 47, 161)
HSLhsl(257, 55%, 41%)
HSVhsv(257, 71%, 63%)
CMYKcmyk(50.3%, 70.8%, 0%, 36.9%)
CIE-LABlab(30.18, 42.78, -56.54)
CIE-LCHlch(30.18, 70.90, 307.11°)
OKLaboklab(41.69% 0.0594 -0.1622)
OKLCHoklch(41.69% 0.173 290.1)
XYZxyz(10.7560, 6.3113, 34.3628)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FA1 #80A12F
analogous
#2F47A1 #502FA1 #892FA1
triadic
#502FA1 #A1502F #2FA150
tetradic
#502FA1 #A12F47 #80A12F #2FA189
square
#502FA1 #A12F47 #80A12F #2FA189
split-complementary
#502FA1 #A1892F #47A12F
monochromatic
#211342 #382172 #502FA1 #6B45C9 #9074D6

Accessibility & contrast

On white

9.28
#502FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#502FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502FA1
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502FA1#FFFFFF#000000##FFFFFF
##502FA11.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#344C64
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #502fa1;
/* rgb */ color: rgb(80, 47, 161);
/* oklch */ color: oklch(41.7% 0.173 290.1);
Tailwind
colors: {
  custom: {
    50: '#896abe',
    500: '#502fa1',
    950: '#000000',
  },
}
SCSS
$custom: #502fa1;
$custom-light: #896abe;
$custom-dark: #000000;
JSON
{
  "hex": "#502fa1",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 257.368,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41692,
    "c": 0.17274,
    "h": 290.1
  },
  "luminance": 0.06312
}

Semantic roles & 50–950 ramp

primary
#502FA1
secondary
#A7BE6E
accent
#DE4AB3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #502FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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