#502E98#502E98

#502E98 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.163 H 292.4°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#502E98
RGBrgb(80, 46, 152)
HSLhsl(259, 54%, 39%)
HSVhsv(259, 70%, 60%)
CMYKcmyk(47.4%, 69.7%, 0%, 40.4%)
CIE-LABlab(29.23, 40.72, -52.63)
CIE-LCHlch(29.23, 66.54, 307.73°)
OKLaboklab(40.77% 0.062 -0.1507)
OKLCHoklch(40.77% 0.163 292.4)
XYZxyz(9.9512, 5.9261, 30.3192)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502E98 #76982E
analogous
#2E4198 #502E98 #852E98
triadic
#502E98 #98502E #2E9850
tetradic
#502E98 #982E41 #76982E #2E9885
square
#502E98 #982E41 #76982E #2E9885
split-complementary
#502E98 #98852E #41982E
monochromatic
#1F123A #372069 #502E98 #6A3EC5 #8E6DD3

Accessibility & contrast

On white

9.61
#502E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#502E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502E98
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502E98#FFFFFF#000000##FFFFFF
##502E981.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#3A485F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #502e98;
/* rgb */ color: rgb(80, 46, 152);
/* oklch */ color: oklch(40.8% 0.163 292.4);
Tailwind
colors: {
  custom: {
    50: '#8869b7',
    500: '#502e98',
    950: '#000000',
  },
}
SCSS
$custom: #502e98;
$custom-light: #8869b7;
$custom-dark: #000000;
JSON
{
  "hex": "#502e98",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 259.245,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4077,
    "c": 0.16298,
    "h": 292.4
  },
  "luminance": 0.05926
}

Semantic roles & 50–950 ramp

primary
#502E98
secondary
#A0BA68
accent
#DD4BAE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502E98

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

Preview Lab → · Contrast checker → · Palette generator →

#502E98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva