#502292#502292

#502292 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.170 H 296.1°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#502292
RGBrgb(80, 34, 146)
HSLhsl(265, 62%, 35%)
HSVhsv(265, 77%, 57%)
CMYKcmyk(45.2%, 76.7%, 0%, 42.7%)
CIE-LABlab(26.52, 45.19, -53.36)
CIE-LCHlch(26.52, 69.93, 310.26°)
OKLaboklab(38.69% 0.0748 -0.1528)
OKLCHoklch(38.69% 0.17 296.1)
XYZxyz(9.0672, 4.9246, 27.6614)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502292 #649222
analogous
#222C92 #502292 #882292
triadic
#502292 #925022 #229250
tetradic
#502292 #92222C #649222 #229288
square
#502292 #92222C #649222 #229288
split-complementary
#502292 #928822 #2C9222
monochromatic
#1A0B2F #351660 #502292 #6B2EC4 #8C57D8

Accessibility & contrast

On white

10.58
#502292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#502292 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502292
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502292#FFFFFF#000000##FFFFFF
##5022921.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F95
Deuteranopia (green-blind)
#003D90
Tritanopia (blue-blind)
#3E4059
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #502292;
/* rgb */ color: rgb(80, 34, 146);
/* oklch */ color: oklch(38.7% 0.170 296.1);
Tailwind
colors: {
  custom: {
    50: '#8862b3',
    500: '#502292',
    950: '#000000',
  },
}
SCSS
$custom: #502292;
$custom-light: #8862b3;
$custom-dark: #000000;
JSON
{
  "hex": "#502292",
  "rgb": {
    "r": 80,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 264.643,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3869,
    "c": 0.17015,
    "h": 296.1
  },
  "luminance": 0.04925
}

Semantic roles & 50–950 ramp

primary
#502292
secondary
#91BC54
accent
#E543A2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #502292

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

Preview Lab → · Contrast checker → · Palette generator →

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