#502897#502897

#502897 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.9% C 0.169 H 293.7°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#502897
RGBrgb(80, 40, 151)
HSLhsl(262, 58%, 37%)
HSVhsv(262, 74%, 59%)
CMYKcmyk(47%, 73.5%, 0%, 40.8%)
CIE-LABlab(28.00, 43.62, -54.02)
CIE-LCHlch(28.00, 69.43, 308.92°)
OKLaboklab(39.87% 0.0681 -0.1548)
OKLCHoklch(39.87% 0.169 293.7)
XYZxyz(9.6514, 5.4571, 29.8170)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502897 #6F9728
analogous
#283797 #502897 #882897
triadic
#502897 #975028 #289750
tetradic
#502897 #972837 #6F9728 #289788
square
#502897 #972837 #6F9728 #289788
split-complementary
#502897 #978828 #379728
monochromatic
#1D0E36 #361B67 #502897 #6A35C7 #8D64D6

Accessibility & contrast

On white

10.04
#502897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#502897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502897
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502897#FFFFFF#000000##FFFFFF
##5028971.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#3B455D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #502897;
/* rgb */ color: rgb(80, 40, 151);
/* oklch */ color: oklch(39.9% 0.169 293.7);
Tailwind
colors: {
  custom: {
    50: '#8866b7',
    500: '#502897',
    950: '#000000',
  },
}
SCSS
$custom: #502897;
$custom-light: #8866b7;
$custom-dark: #000000;
JSON
{
  "hex": "#502897",
  "rgb": {
    "r": 80,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 261.622,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39871,
    "c": 0.16909,
    "h": 293.7
  },
  "luminance": 0.05457
}

Semantic roles & 50–950 ramp

primary
#502897
secondary
#9ABC5F
accent
#E146AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502897

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

Preview Lab → · Contrast checker → · Palette generator →

#502897 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva