#502291#502291

#502291 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.169 H 296.4°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#502291
RGBrgb(80, 34, 145)
HSLhsl(265, 62%, 35%)
HSVhsv(265, 77%, 57%)
CMYKcmyk(44.8%, 76.6%, 0%, 43.1%)
CIE-LABlab(26.43, 44.92, -52.89)
CIE-LCHlch(26.43, 69.39, 310.35°)
OKLaboklab(38.6% 0.0751 -0.1514)
OKLCHoklch(38.6% 0.169 296.4)
XYZxyz(8.9898, 4.8937, 27.2535)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502291 #639122
analogous
#222B91 #502291 #872291
triadic
#502291 #915022 #229150
tetradic
#502291 #91222B #639122 #229187
square
#502291 #91222B #639122 #229187
split-complementary
#502291 #918722 #2B9122
monochromatic
#190B2E #35165F #502291 #6B2EC3 #8C56D7

Accessibility & contrast

On white

10.61
#502291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#502291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502291
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502291#FFFFFF#000000##FFFFFF
##5022911.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F94
Deuteranopia (green-blind)
#003D8F
Tritanopia (blue-blind)
#3E3F58
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #502291;
/* rgb */ color: rgb(80, 34, 145);
/* oklch */ color: oklch(38.6% 0.169 296.4);
Tailwind
colors: {
  custom: {
    50: '#8862b2',
    500: '#502291',
    950: '#000000',
  },
}
SCSS
$custom: #502291;
$custom-light: #8862b2;
$custom-dark: #000000;
JSON
{
  "hex": "#502291",
  "rgb": {
    "r": 80,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 264.865,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.386,
    "c": 0.16902,
    "h": 296.4
  },
  "luminance": 0.04894
}

Semantic roles & 50–950 ramp

primary
#502291
secondary
#90BB53
accent
#E543A2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #502291

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

Preview Lab → · Contrast checker → · Palette generator →

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