#502EB4#502EB4

#502EB4 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.197 H 286.6°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#502EB4
RGBrgb(80, 46, 180)
HSLhsl(255, 59%, 44%)
HSVhsv(255, 74%, 71%)
CMYKcmyk(55.6%, 74.4%, 0%, 29.4%)
CIE-LABlab(31.70, 48.80, -65.45)
CIE-LCHlch(31.70, 81.64, 306.71°)
OKLaboklab(43.29% 0.0561 -0.1883)
OKLCHoklch(43.29% 0.197 286.6)
XYZxyz(12.5210, 6.9541, 43.8537)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502EB4 #92B42E
analogous
#2E4FB4 #502EB4 #932EB4
triadic
#502EB4 #B4502E #2EB450
tetradic
#502EB4 #B42E4F #92B42E #2EB493
square
#502EB4 #B42E4F #92B42E #2EB493
split-complementary
#502EB4 #B4932E #4FB42E
monochromatic
#251553 #3A2283 #502EB4 #6F4ED2 #977EDE

Accessibility & contrast

On white

8.78
#502EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#502EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502EB4
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502EB4#FFFFFF#000000##FFFFFF
##502EB41.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0047B2
Tritanopia (blue-blind)
#23536F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #502eb4;
/* rgb */ color: rgb(80, 46, 180);
/* oklch */ color: oklch(43.3% 0.197 286.6);
Tailwind
colors: {
  custom: {
    50: '#8c6acc',
    500: '#502eb4',
    950: '#000000',
  },
}
SCSS
$custom: #502eb4;
$custom-light: #8c6acc;
$custom-dark: #000000;
JSON
{
  "hex": "#502eb4",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 255.224,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43291,
    "c": 0.19651,
    "h": 286.6
  },
  "luminance": 0.06955
}

Semantic roles & 50–950 ramp

primary
#502EB4
secondary
#B3C777
accent
#E245BB
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #502EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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