#502155#502155

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

Color values

HEX#502155
RGBrgb(80, 33, 85)
HSLhsl(294, 44%, 23%)
HSVhsv(294, 61%, 33%)
CMYKcmyk(5.9%, 61.2%, 0%, 66.7%)
CIE-LABlab(21.76, 30.54, -21.92)
CIE-LCHlch(21.76, 37.59, 324.33°)
OKLaboklab(33.84% 0.0826 -0.0607)
OKLCHoklch(33.84% 0.103 323.7)
XYZxyz(5.4917, 3.4493, 8.9691)
Luminance0.0345 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502155 #265521
analogous
#362155 #502155 #552140
triadic
#502155 #555021 #215550
tetradic
#502155 #553621 #265521 #214055
square
#502155 #553621 #265521 #214055
split-complementary
#502155 #405521 #215536
monochromatic
#150916 #271029 #502155 #793281 #A343AD

Accessibility & contrast

On white

12.43
#502155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502155
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502155#FFFFFF#000000##FFFFFF
##5021551.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193157
Deuteranopia (green-blind)
#293654
Tritanopia (blue-blind)
#512837
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #502155;
/* rgb */ color: rgb(80, 33, 85);
/* oklch */ color: oklch(33.8% 0.102 323.7);
Tailwind
colors: {
  custom: {
    50: '#835f85',
    500: '#502155',
    950: '#000000',
  },
}
SCSS
$custom: #502155;
$custom-light: #835f85;
$custom-dark: #000000;
JSON
{
  "hex": "#502155",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 85
  },
  "hsl": {
    "h": 294.231,
    "s": 44.068,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33839,
    "c": 0.1025,
    "h": 323.7
  },
  "luminance": 0.03449
}

Semantic roles & 50–950 ramp

primary
#502155
secondary
#4F8949
accent
#D45460
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #502155

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

Preview Lab → · Contrast checker → · Palette generator →

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