#502CB9#502CB9

#502CB9 is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.5% C 0.204 H 286.0°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#502CB9
RGBrgb(80, 44, 185)
HSLhsl(255, 62%, 45%)
HSVhsv(255, 76%, 73%)
CMYKcmyk(56.8%, 76.2%, 0%, 27.5%)
CIE-LABlab(31.83, 51.22, -68.22)
CIE-LCHlch(31.83, 85.31, 306.90°)
OKLaboklab(43.52% 0.0562 -0.1964)
OKLCHoklch(43.52% 0.204 286)
XYZxyz(12.9633, 7.0089, 46.5593)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502CB9 #95B92C
analogous
#2C4FB9 #502CB9 #962CB9
triadic
#502CB9 #B9502C #2CB950
tetradic
#502CB9 #B92C4F #95B92C #2CB996
square
#502CB9 #B92C4F #95B92C #2CB996
split-complementary
#502CB9 #B9962C #4FB92C
monochromatic
#251456 #3B2088 #502CB9 #704DD5 #987FE1

Accessibility & contrast

On white

8.74
#502CB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502CB9
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502CB9#FFFFFF#000000##FFFFFF
##502CB91.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBD
Deuteranopia (green-blind)
#0047B6
Tritanopia (blue-blind)
#1D5471
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #502cb9;
/* rgb */ color: rgb(80, 44, 185);
/* oklch */ color: oklch(43.5% 0.204 286.0);
Tailwind
colors: {
  custom: {
    50: '#8d6acf',
    500: '#502cb9',
    950: '#000000',
  },
}
SCSS
$custom: #502cb9;
$custom-light: #8d6acf;
$custom-dark: #000000;
JSON
{
  "hex": "#502cb9",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 185
  },
  "hsl": {
    "h": 255.319,
    "s": 61.572,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43522,
    "c": 0.20431,
    "h": 286
  },
  "luminance": 0.0701
}

Semantic roles & 50–950 ramp

primary
#502CB9
secondary
#B4C978
accent
#E543BB
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #502CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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