#502FB1#502FB1

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

Color values

HEX#502FB1
RGBrgb(80, 47, 177)
HSLhsl(255, 58%, 44%)
HSVhsv(255, 73%, 69%)
CMYKcmyk(54.8%, 73.4%, 0%, 30.6%)
CIE-LABlab(31.61, 47.42, -63.83)
CIE-LCHlch(31.61, 79.51, 306.61°)
OKLaboklab(43.14% 0.056 -0.1836)
OKLCHoklch(43.14% 0.192 287)
XYZxyz(12.2582, 6.9122, 42.2747)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FB1 #90B12F
analogous
#2F4FB1 #502FB1 #912FB1
triadic
#502FB1 #B1502F #2FB150
tetradic
#502FB1 #B12F4F #90B12F #2FB191
square
#502FB1 #B12F4F #90B12F #2FB191
split-complementary
#502FB1 #B1912F #4FB12F
monochromatic
#241550 #3A2281 #502FB1 #6E4DD0 #967EDD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##502FB1#FFFFFF#000000##FFFFFF
##502FB11.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)
#004DB5
Deuteranopia (green-blind)
#0047AF
Tritanopia (blue-blind)
#27526D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #502fb1;
/* rgb */ color: rgb(80, 47, 177);
/* oklch */ color: oklch(43.1% 0.192 287.0);
Tailwind
colors: {
  custom: {
    50: '#8b6bc9',
    500: '#502fb1',
    950: '#000000',
  },
}
SCSS
$custom: #502fb1;
$custom-light: #8b6bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#502fb1",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 255.231,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43138,
    "c": 0.19194,
    "h": 287
  },
  "luminance": 0.06913
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #502FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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