#502FB8#502FB8

#502FB8 is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 43.8% C 0.200 H 285.7°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#502FB8
RGBrgb(80, 47, 184)
HSLhsl(254, 59%, 45%)
HSVhsv(254, 74%, 72%)
CMYKcmyk(56.5%, 74.5%, 0%, 27.8%)
CIE-LABlab(32.25, 49.45, -66.92)
CIE-LCHlch(32.25, 83.21, 306.46°)
OKLaboklab(43.79% 0.0543 -0.1926)
OKLCHoklch(43.79% 0.2 285.7)
XYZxyz(12.9739, 7.1984, 46.0439)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FB8 #97B82F
analogous
#2F52B8 #502FB8 #952FB8
triadic
#502FB8 #B8502F #2FB850
tetradic
#502FB8 #B82F52 #97B82F #2FB895
square
#502FB8 #B82F52 #97B82F #2FB895
split-complementary
#502FB8 #B8952F #52B82F
monochromatic
#261657 #3B2387 #502FB8 #7152D3 #9982DF

Accessibility & contrast

On white

8.61
#502FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#502FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502FB8
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502FB8#FFFFFF#000000##FFFFFF
##502FB81.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBC
Deuteranopia (green-blind)
#0048B5
Tritanopia (blue-blind)
#1E5571
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #502fb8;
/* rgb */ color: rgb(80, 47, 184);
/* oklch */ color: oklch(43.8% 0.200 285.7);
Tailwind
colors: {
  custom: {
    50: '#8c6bce',
    500: '#502fb8',
    950: '#000000',
  },
}
SCSS
$custom: #502fb8;
$custom-light: #8c6bce;
$custom-dark: #000000;
JSON
{
  "hex": "#502fb8",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 254.453,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43793,
    "c": 0.20016,
    "h": 285.7
  },
  "luminance": 0.07199
}

Semantic roles & 50–950 ramp

primary
#502FB8
secondary
#B6C87B
accent
#E245BD
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #502FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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