#502EB5#502EB5

#502EB5 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.198 H 286.4°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#502EB5
RGBrgb(80, 46, 181)
HSLhsl(255, 59%, 45%)
HSVhsv(255, 75%, 71%)
CMYKcmyk(55.8%, 74.6%, 0%, 29%)
CIE-LABlab(31.80, 49.09, -65.90)
CIE-LCHlch(31.80, 82.17, 306.68°)
OKLaboklab(43.39% 0.0558 -0.1897)
OKLCHoklch(43.39% 0.198 286.4)
XYZxyz(12.6232, 6.9950, 44.3921)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502EB5 #93B52E
analogous
#2E50B5 #502EB5 #942EB5
triadic
#502EB5 #B5502E #2EB550
tetradic
#502EB5 #B52E50 #93B52E #2EB594
square
#502EB5 #B52E50 #93B52E #2EB594
split-complementary
#502EB5 #B5942E #50B52E
monochromatic
#251553 #3A2284 #502EB5 #6F4ED2 #977FDE

Accessibility & contrast

On white

8.75
#502EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#502EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502EB5
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502EB5#FFFFFF#000000##FFFFFF
##502EB51.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #502eb5;
/* rgb */ color: rgb(80, 46, 181);
/* oklch */ color: oklch(43.4% 0.198 286.4);
Tailwind
colors: {
  custom: {
    50: '#8c6bcc',
    500: '#502eb5',
    950: '#000000',
  },
}
SCSS
$custom: #502eb5;
$custom-light: #8c6bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#502eb5",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 255.111,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43385,
    "c": 0.19769,
    "h": 286.4
  },
  "luminance": 0.06996
}

Semantic roles & 50–950 ramp

primary
#502EB5
secondary
#B3C778
accent
#E345BB
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #502EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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