#502FB4#502FB4

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

Color values

HEX#502FB4
RGBrgb(80, 47, 180)
HSLhsl(255, 59%, 45%)
HSVhsv(255, 74%, 71%)
CMYKcmyk(55.6%, 73.9%, 0%, 29.4%)
CIE-LABlab(31.88, 48.29, -65.16)
CIE-LCHlch(31.88, 81.10, 306.54°)
OKLaboklab(43.42% 0.0553 -0.1875)
OKLCHoklch(43.42% 0.195 286.4)
XYZxyz(12.5605, 7.0331, 43.8668)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FB4 #93B42F
analogous
#2F51B4 #502FB4 #922FB4
triadic
#502FB4 #B4502F #2FB450
tetradic
#502FB4 #B42F51 #93B42F #2FB492
square
#502FB4 #B42F51 #93B42F #2FB492
split-complementary
#502FB4 #B4922F #51B42F
monochromatic
#251653 #3A2283 #502FB4 #6F4FD1 #9780DE

Accessibility & contrast

On white

8.73
#502FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#502FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502FB4
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502FB4#FFFFFF#000000##FFFFFF
##502FB41.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.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: #502fb4;
/* rgb */ color: rgb(80, 47, 180);
/* oklch */ color: oklch(43.4% 0.195 286.4);
Tailwind
colors: {
  custom: {
    50: '#8c6bcc',
    500: '#502fb4',
    950: '#000000',
  },
}
SCSS
$custom: #502fb4;
$custom-light: #8c6bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#502fb4",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 254.887,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43418,
    "c": 0.19548,
    "h": 286.4
  },
  "luminance": 0.07034
}

Semantic roles & 50–950 ramp

primary
#502FB4
secondary
#B3C778
accent
#E246BB
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #502FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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