#502FB9#502FB9

#502FB9 is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 43.9% C 0.201 H 285.6°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#502FB9
RGBrgb(80, 47, 185)
HSLhsl(254, 59%, 45%)
HSVhsv(254, 75%, 73%)
CMYKcmyk(56.8%, 74.6%, 0%, 27.5%)
CIE-LABlab(32.35, 49.74, -67.36)
CIE-LCHlch(32.35, 83.73, 306.44°)
OKLaboklab(43.89% 0.0541 -0.1939)
OKLCHoklch(43.89% 0.201 285.6)
XYZxyz(13.0791, 7.2405, 46.5979)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FB9 #98B92F
analogous
#2F53B9 #502FB9 #952FB9
triadic
#502FB9 #B9502F #2FB950
tetradic
#502FB9 #B92F53 #98B92F #2FB995
square
#502FB9 #B92F53 #98B92F #2FB995
split-complementary
#502FB9 #B9952F #53B92F
monochromatic
#261657 #3B2388 #502FB9 #7152D3 #9983DF

Accessibility & contrast

On white

8.58
#502FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#502FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502FB9
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502FB9#FFFFFF#000000##FFFFFF
##502FB91.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BD
Deuteranopia (green-blind)
#0048B6
Tritanopia (blue-blind)
#1C5572
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #502fb9;
/* rgb */ color: rgb(80, 47, 185);
/* oklch */ color: oklch(43.9% 0.201 285.6);
Tailwind
colors: {
  custom: {
    50: '#8d6bcf',
    500: '#502fb9',
    950: '#000000',
  },
}
SCSS
$custom: #502fb9;
$custom-light: #8d6bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#502fb9",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 254.348,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43888,
    "c": 0.20133,
    "h": 285.6
  },
  "luminance": 0.07241
}

Semantic roles & 50–950 ramp

primary
#502FB9
secondary
#B6C97B
accent
#E345BD
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #502FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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