#502EB3#502EB3

#502EB3 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.195 H 286.8°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#502EB3
RGBrgb(80, 46, 179)
HSLhsl(255, 59%, 44%)
HSVhsv(255, 74%, 70%)
CMYKcmyk(55.3%, 74.3%, 0%, 29.8%)
CIE-LABlab(31.61, 48.51, -65.01)
CIE-LCHlch(31.61, 81.12, 306.73°)
OKLaboklab(43.2% 0.0563 -0.1871)
OKLCHoklch(43.2% 0.195 286.8)
XYZxyz(12.4195, 6.9135, 43.3191)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502EB3 #91B32E
analogous
#2E4FB3 #502EB3 #932EB3
triadic
#502EB3 #B3502E #2EB350
tetradic
#502EB3 #B32E4F #91B32E #2EB393
square
#502EB3 #B32E4F #91B32E #2EB393
split-complementary
#502EB3 #B3932E #4FB32E
monochromatic
#241552 #3A2182 #502EB3 #6F4DD1 #967EDE

Accessibility & contrast

On white

8.81
#502EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#502EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502EB3
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502EB3#FFFFFF#000000##FFFFFF
##502EB31.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#24536E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #502eb3;
/* rgb */ color: rgb(80, 46, 179);
/* oklch */ color: oklch(43.2% 0.195 286.8);
Tailwind
colors: {
  custom: {
    50: '#8c6acb',
    500: '#502eb3',
    950: '#000000',
  },
}
SCSS
$custom: #502eb3;
$custom-light: #8c6acb;
$custom-dark: #000000;
JSON
{
  "hex": "#502eb3",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 255.338,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43197,
    "c": 0.19535,
    "h": 286.8
  },
  "luminance": 0.06914
}

Semantic roles & 50–950 ramp

primary
#502EB3
secondary
#B2C676
accent
#E246BA
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #502EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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