#502CA9#502CA9

#502CA9 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.186 H 289.0°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#502CA9
RGBrgb(80, 44, 169)
HSLhsl(257, 59%, 42%)
HSVhsv(257, 74%, 66%)
CMYKcmyk(52.7%, 74%, 0%, 33.7%)
CIE-LABlab(30.33, 46.66, -61.13)
CIE-LCHlch(30.33, 76.90, 307.35°)
OKLaboklab(42.01% 0.0603 -0.1757)
OKLCHoklch(42.01% 0.186 289)
XYZxyz(11.3683, 6.3709, 38.1591)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502CA9 #85A92C
analogous
#2C47A9 #502CA9 #8F2CA9
triadic
#502CA9 #A9502C #2CA950
tetradic
#502CA9 #A92C47 #85A92C #2CA98F
square
#502CA9 #A92C47 #85A92C #2CA98F
split-complementary
#502CA9 #A98F2C #47A92C
monochromatic
#221348 #391F78 #502CA9 #6C44CE #9274DB

Accessibility & contrast

On white

9.23
#502CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#502CA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502CA9
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502CA9#FFFFFF#000000##FFFFFF
##502CA91.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAD
Deuteranopia (green-blind)
#0044A7
Tritanopia (blue-blind)
#2E4E68
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #502ca9;
/* rgb */ color: rgb(80, 44, 169);
/* oklch */ color: oklch(42.0% 0.186 289.0);
Tailwind
colors: {
  custom: {
    50: '#8a69c4',
    500: '#502ca9',
    950: '#000000',
  },
}
SCSS
$custom: #502ca9;
$custom-light: #8a69c4;
$custom-dark: #000000;
JSON
{
  "hex": "#502ca9",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 169
  },
  "hsl": {
    "h": 257.28,
    "s": 58.685,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42013,
    "c": 0.18574,
    "h": 289
  },
  "luminance": 0.06371
}

Semantic roles & 50–950 ramp

primary
#502CA9
secondary
#AAC36E
accent
#E246B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #502CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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