#502185#502185

#502185 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.157 H 300.3°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#502185
RGBrgb(80, 33, 133)
HSLhsl(268, 60%, 33%)
HSVhsv(268, 75%, 52%)
CMYKcmyk(39.8%, 75.2%, 0%, 47.8%)
CIE-LABlab(25.22, 42.23, -47.39)
CIE-LCHlch(25.22, 63.48, 311.70°)
OKLaboklab(37.42% 0.0789 -0.1353)
OKLCHoklch(37.42% 0.157 300.3)
XYZxyz(8.0847, 4.4866, 22.6258)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502185 #568521
analogous
#212485 #502185 #822185
triadic
#502185 #855021 #218550
tetradic
#502185 #852124 #568521 #218582
square
#502185 #852124 #568521 #218582
split-complementary
#502185 #858221 #248521
monochromatic
#150923 #331554 #502185 #6D2DB6 #8C4DD3

Accessibility & contrast

On white

11.07
#502185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#502185 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502185
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502185#FFFFFF#000000##FFFFFF
##5021851.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B88
Deuteranopia (green-blind)
#003B83
Tritanopia (blue-blind)
#443A51
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #502185;
/* rgb */ color: rgb(80, 33, 133);
/* oklch */ color: oklch(37.4% 0.157 300.3);
Tailwind
colors: {
  custom: {
    50: '#8661a9',
    500: '#502185',
    950: '#000000',
  },
}
SCSS
$custom: #502185;
$custom-light: #8661a9;
$custom-dark: #000000;
JSON
{
  "hex": "#502185",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 133
  },
  "hsl": {
    "h": 268.2,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37423,
    "c": 0.15663,
    "h": 300.3
  },
  "luminance": 0.04487
}

Semantic roles & 50–950 ramp

primary
#502185
secondary
#84B64C
accent
#E34499
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #502185

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

Preview Lab → · Contrast checker → · Palette generator →

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