#502F9D#502F9D

#502F9D is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.3% C 0.168 H 291.0°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#502F9D
RGBrgb(80, 47, 157)
HSLhsl(258, 54%, 40%)
HSVhsv(258, 70%, 62%)
CMYKcmyk(49%, 70.1%, 0%, 38.4%)
CIE-LABlab(29.84, 41.62, -54.67)
CIE-LCHlch(29.84, 68.71, 307.28°)
OKLaboklab(41.34% 0.0601 -0.1567)
OKLCHoklch(41.34% 0.168 291)
XYZxyz(10.4089, 6.1724, 32.5347)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502F9D #7C9D2F
analogous
#2F459D #502F9D #872F9D
triadic
#502F9D #9D502F #2F9D50
tetradic
#502F9D #9D2F45 #7C9D2F #2F9D87
square
#502F9D #9D2F45 #7C9D2F #2F9D87
split-complementary
#502F9D #9D872F #459D2F
monochromatic
#20133F #38216E #502F9D #6A43C7 #8F72D5

Accessibility & contrast

On white

9.40
#502F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#502F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502F9D
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502F9D#FFFFFF#000000##FFFFFF
##502F9D1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A0
Deuteranopia (green-blind)
#00449B
Tritanopia (blue-blind)
#374B62
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #502f9d;
/* rgb */ color: rgb(80, 47, 157);
/* oklch */ color: oklch(41.3% 0.168 291.0);
Tailwind
colors: {
  custom: {
    50: '#886abb',
    500: '#502f9d',
    950: '#000000',
  },
}
SCSS
$custom: #502f9d;
$custom-light: #886abb;
$custom-dark: #000000;
JSON
{
  "hex": "#502f9d",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 258,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.41343,
    "c": 0.16786,
    "h": 291
  },
  "luminance": 0.06173
}

Semantic roles & 50–950 ramp

primary
#502F9D
secondary
#A4BC6B
accent
#DD4BB1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #502F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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