#502FB5#502FB5

#502FB5 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.5% C 0.197 H 286.3°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#502FB5
RGBrgb(80, 47, 181)
HSLhsl(255, 59%, 45%)
HSVhsv(255, 74%, 71%)
CMYKcmyk(55.8%, 74%, 0%, 29%)
CIE-LABlab(31.97, 48.58, -65.60)
CIE-LCHlch(31.97, 81.63, 306.52°)
OKLaboklab(43.51% 0.055 -0.1888)
OKLCHoklch(43.51% 0.197 286.3)
XYZxyz(12.6628, 7.0740, 44.4053)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FB5 #94B52F
analogous
#2F51B5 #502FB5 #932FB5
triadic
#502FB5 #B5502F #2FB550
tetradic
#502FB5 #B52F51 #94B52F #2FB593
square
#502FB5 #B52F51 #94B52F #2FB593
split-complementary
#502FB5 #B5932F #51B52F
monochromatic
#251654 #3B2284 #502FB5 #7050D1 #9780DE

Accessibility & contrast

On white

8.70
#502FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502FB5
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502FB5#FFFFFF#000000##FFFFFF
##502FB51.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #502fb5;
/* rgb */ color: rgb(80, 47, 181);
/* oklch */ color: oklch(43.5% 0.197 286.3);
Tailwind
colors: {
  custom: {
    50: '#8c6bcc',
    500: '#502fb5',
    950: '#000000',
  },
}
SCSS
$custom: #502fb5;
$custom-light: #8c6bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#502fb5",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 254.776,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43511,
    "c": 0.19665,
    "h": 286.3
  },
  "luminance": 0.07075
}

Semantic roles & 50–950 ramp

primary
#502FB5
secondary
#B4C779
accent
#E246BC
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #502FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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