#502FBD#502FBD

#502FBD is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.3% C 0.206 H 284.9°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#502FBD
RGBrgb(80, 47, 189)
HSLhsl(254, 60%, 46%)
HSVhsv(254, 75%, 74%)
CMYKcmyk(57.7%, 75.1%, 0%, 25.9%)
CIE-LABlab(32.73, 50.90, -69.10)
CIE-LCHlch(32.73, 85.82, 306.37°)
OKLaboklab(44.27% 0.0531 -0.199)
OKLCHoklch(44.27% 0.206 284.9)
XYZxyz(13.5073, 7.4118, 48.8531)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FBD #9CBD2F
analogous
#2F55BD #502FBD #972FBD
triadic
#502FBD #BD502F #2FBD50
tetradic
#502FBD #BD2F55 #9CBD2F #2FBD97
square
#502FBD #BD2F55 #9CBD2F #2FBD97
split-complementary
#502FBD #BD972F #55BD2F
monochromatic
#27175B #3B238C #502FBD #7255D5 #9B86E1

Accessibility & contrast

On white

8.46
#502FBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#502FBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502FBD
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502FBD#FFFFFF#000000##FFFFFF
##502FBD1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C1
Deuteranopia (green-blind)
#0049BA
Tritanopia (blue-blind)
#155774
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #502fbd;
/* rgb */ color: rgb(80, 47, 189);
/* oklch */ color: oklch(44.3% 0.206 284.9);
Tailwind
colors: {
  custom: {
    50: '#8d6bd2',
    500: '#502fbd',
    950: '#000000',
  },
}
SCSS
$custom: #502fbd;
$custom-light: #8d6bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#502fbd",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 189
  },
  "hsl": {
    "h": 253.944,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44269,
    "c": 0.20598,
    "h": 284.9
  },
  "luminance": 0.07413
}

Semantic roles & 50–950 ramp

primary
#502FBD
secondary
#B8CA7E
accent
#E344BE
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #502FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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