#502FA2#502FA2

#502FA2 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.174 H 289.9°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#502FA2
RGBrgb(80, 47, 162)
HSLhsl(257, 55%, 41%)
HSVhsv(257, 71%, 64%)
CMYKcmyk(50.6%, 71%, 0%, 36.5%)
CIE-LABlab(30.27, 43.07, -57.00)
CIE-LCHlch(30.27, 71.44, 307.07°)
OKLaboklab(41.78% 0.0592 -0.1636)
OKLCHoklch(41.78% 0.174 289.9)
XYZxyz(10.8445, 6.3467, 34.8290)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FA2 #81A22F
analogous
#2F48A2 #502FA2 #892FA2
triadic
#502FA2 #A2502F #2FA250
tetradic
#502FA2 #A22F48 #81A22F #2FA289
square
#502FA2 #A22F48 #81A22F #2FA289
split-complementary
#502FA2 #A2892F #48A22F
monochromatic
#211343 #392173 #502FA2 #6B45C9 #9175D7

Accessibility & contrast

On white

9.25
#502FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#502FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502FA2
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502FA2#FFFFFF#000000##FFFFFF
##502FA21.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#344D65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #502fa2;
/* rgb */ color: rgb(80, 47, 162);
/* oklch */ color: oklch(41.8% 0.174 289.9);
Tailwind
colors: {
  custom: {
    50: '#896abe',
    500: '#502fa2',
    950: '#000000',
  },
}
SCSS
$custom: #502fa2;
$custom-light: #896abe;
$custom-dark: #000000;
JSON
{
  "hex": "#502fa2",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 257.217,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.4178,
    "c": 0.17397,
    "h": 289.9
  },
  "luminance": 0.06347
}

Semantic roles & 50–950 ramp

primary
#502FA2
secondary
#A8BF6E
accent
#DE49B4
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #502FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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