#502FB0#502FB0

#502FB0 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.191 H 287.1°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#502FB0
RGBrgb(80, 47, 176)
HSLhsl(255, 58%, 44%)
HSVhsv(255, 73%, 69%)
CMYKcmyk(54.5%, 73.3%, 0%, 31%)
CIE-LABlab(31.51, 47.13, -63.38)
CIE-LCHlch(31.51, 78.98, 306.64°)
OKLaboklab(43.05% 0.0562 -0.1823)
OKLCHoklch(43.05% 0.191 287.1)
XYZxyz(12.1589, 6.8725, 41.7517)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FB0 #8FB02F
analogous
#2F4EB0 #502FB0 #902FB0
triadic
#502FB0 #B0502F #2FB050
tetradic
#502FB0 #B02F4E #8FB02F #2FB090
square
#502FB0 #B02F4E #8FB02F #2FB090
split-complementary
#502FB0 #B0902F #4EB02F
monochromatic
#24154F #3A2280 #502FB0 #6E4DCF #957DDC

Accessibility & contrast

On white

8.84
#502FB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#502FB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502FB0
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502FB0#FFFFFF#000000##FFFFFF
##502FB01.008.842.378.84
#FFFFFF8.841.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB4
Deuteranopia (green-blind)
#0047AE
Tritanopia (blue-blind)
#28526D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #502fb0;
/* rgb */ color: rgb(80, 47, 176);
/* oklch */ color: oklch(43.0% 0.191 287.1);
Tailwind
colors: {
  custom: {
    50: '#8b6bc9',
    500: '#502fb0',
    950: '#000000',
  },
}
SCSS
$custom: #502fb0;
$custom-light: #8b6bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#502fb0",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 176
  },
  "hsl": {
    "h": 255.349,
    "s": 57.848,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43046,
    "c": 0.19075,
    "h": 287.1
  },
  "luminance": 0.06873
}

Semantic roles & 50–950 ramp

primary
#502FB0
secondary
#B1C576
accent
#E147BA
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #502FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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