#502FB3#502FB3

#502FB3 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.194 H 286.6°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#502FB3
RGBrgb(80, 47, 179)
HSLhsl(255, 58%, 44%)
HSVhsv(255, 74%, 70%)
CMYKcmyk(55.3%, 73.7%, 0%, 29.8%)
CIE-LABlab(31.79, 48.00, -64.72)
CIE-LCHlch(31.79, 80.57, 306.56°)
OKLaboklab(43.32% 0.0555 -0.1862)
OKLCHoklch(43.32% 0.194 286.6)
XYZxyz(12.4590, 6.9925, 43.3323)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FB3 #92B32F
analogous
#2F50B3 #502FB3 #922FB3
triadic
#502FB3 #B3502F #2FB350
tetradic
#502FB3 #B32F50 #92B32F #2FB392
square
#502FB3 #B32F50 #92B32F #2FB392
split-complementary
#502FB3 #B3922F #50B32F
monochromatic
#251652 #3A2283 #502FB3 #6F4FD1 #977FDD

Accessibility & contrast

On white

8.76
#502FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#502FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502FB3
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502FB3#FFFFFF#000000##FFFFFF
##502FB31.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #502fb3;
/* rgb */ color: rgb(80, 47, 179);
/* oklch */ color: oklch(43.3% 0.194 286.6);
Tailwind
colors: {
  custom: {
    50: '#8c6bcb',
    500: '#502fb3',
    950: '#000000',
  },
}
SCSS
$custom: #502fb3;
$custom-light: #8c6bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#502fb3",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 255,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43324,
    "c": 0.1943,
    "h": 286.6
  },
  "luminance": 0.06993
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #502FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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