#502C97#502C97

#502C97 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.164 H 293.0°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#502C97
RGBrgb(80, 44, 151)
HSLhsl(260, 55%, 38%)
HSVhsv(260, 71%, 59%)
CMYKcmyk(47%, 70.9%, 0%, 40.8%)
CIE-LABlab(28.75, 41.52, -52.79)
CIE-LCHlch(28.75, 67.16, 308.19°)
OKLaboklab(40.4% 0.0642 -0.1512)
OKLCHoklch(40.4% 0.164 293)
XYZxyz(9.7933, 5.7409, 29.8643)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502C97 #73972C
analogous
#2C3D97 #502C97 #852C97
triadic
#502C97 #97502C #2C9750
tetradic
#502C97 #972C3D #73972C #2C9785
square
#502C97 #972C3D #73972C #2C9785
split-complementary
#502C97 #97852C #3D972C
monochromatic
#1E1038 #371E68 #502C97 #693AC6 #8D6AD4

Accessibility & contrast

On white

9.78
#502C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#502C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502C97
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502C97#FFFFFF#000000##FFFFFF
##502C971.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#3B475E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #502c97;
/* rgb */ color: rgb(80, 44, 151);
/* oklch */ color: oklch(40.4% 0.164 293.0);
Tailwind
colors: {
  custom: {
    50: '#8868b6',
    500: '#502c97',
    950: '#000000',
  },
}
SCSS
$custom: #502c97;
$custom-light: #8868b6;
$custom-dark: #000000;
JSON
{
  "hex": "#502c97",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 260.187,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40404,
    "c": 0.16427,
    "h": 293
  },
  "luminance": 0.05741
}

Semantic roles & 50–950 ramp

primary
#502C97
secondary
#9DBA65
accent
#DE4AAC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502C97

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

Preview Lab → · Contrast checker → · Palette generator →

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