#502154#502154

#502154 is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.8% C 0.101 H 324.4°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#502154
RGBrgb(80, 33, 84)
HSLhsl(295, 44%, 23%)
HSVhsv(295, 61%, 33%)
CMYKcmyk(4.8%, 60.7%, 0%, 67.1%)
CIE-LABlab(21.70, 30.32, -21.34)
CIE-LCHlch(21.70, 37.08, 324.86°)
OKLaboklab(33.78% 0.0825 -0.059)
OKLCHoklch(33.78% 0.101 324.4)
XYZxyz(5.4522, 3.4336, 8.7613)
Luminance0.0343 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502154 #255421
analogous
#362154 #502154 #54213E
triadic
#502154 #545021 #215450
tetradic
#502154 #543621 #255421 #213E54
square
#502154 #543621 #255421 #213E54
split-complementary
#502154 #3E5421 #215436
monochromatic
#150916 #261028 #502154 #7A3280 #A444AC

Accessibility & contrast

On white

12.45
#502154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#502154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502154
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502154#FFFFFF#000000##FFFFFF
##5021541.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3056
Deuteranopia (green-blind)
#293653
Tritanopia (blue-blind)
#522837
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #502154;
/* rgb */ color: rgb(80, 33, 84);
/* oklch */ color: oklch(33.8% 0.101 324.4);
Tailwind
colors: {
  custom: {
    50: '#835f84',
    500: '#502154',
    950: '#000000',
  },
}
SCSS
$custom: #502154;
$custom-light: #835f84;
$custom-dark: #000000;
JSON
{
  "hex": "#502154",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 84
  },
  "hsl": {
    "h": 295.294,
    "s": 43.59,
    "l": 22.941
  },
  "oklch": {
    "l": 0.33778,
    "c": 0.10143,
    "h": 324.4
  },
  "luminance": 0.03433
}

Semantic roles & 50–950 ramp

primary
#502154
secondary
#4E8849
accent
#D3545E
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #502154

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

Preview Lab → · Contrast checker → · Palette generator →

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