#502E90#502E90

#502E90 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.1% C 0.153 H 294.4°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#502E90
RGBrgb(80, 46, 144)
HSLhsl(261, 52%, 37%)
HSVhsv(261, 68%, 56%)
CMYKcmyk(44.4%, 68.1%, 0%, 43.5%)
CIE-LABlab(28.57, 38.43, -48.78)
CIE-LCHlch(28.57, 62.10, 308.23°)
OKLaboklab(40.1% 0.0632 -0.1394)
OKLCHoklch(40.1% 0.153 294.4)
XYZxyz(9.3179, 5.6728, 26.9842)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502E90 #6E902E
analogous
#2E3D90 #502E90 #812E90
triadic
#502E90 #90502E #2E9050
tetradic
#502E90 #902E3D #6E902E #2E9081
square
#502E90 #902E3D #6E902E #2E9081
split-complementary
#502E90 #90812E #3D902E
monochromatic
#1C1033 #361F62 #502E90 #6A3DBE #8D69CF

Accessibility & contrast

On white

9.84
#502E90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#502E90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502E90
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502E90#FFFFFF#000000##FFFFFF
##502E901.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004493
Deuteranopia (green-blind)
#00428E
Tritanopia (blue-blind)
#3E455B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #502e90;
/* rgb */ color: rgb(80, 46, 144);
/* oklch */ color: oklch(40.1% 0.153 294.4);
Tailwind
colors: {
  custom: {
    50: '#8769b1',
    500: '#502e90',
    950: '#000000',
  },
}
SCSS
$custom: #502e90;
$custom-light: #8769b1;
$custom-dark: #000000;
JSON
{
  "hex": "#502e90",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 144
  },
  "hsl": {
    "h": 260.816,
    "s": 51.579,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40097,
    "c": 0.15308,
    "h": 294.4
  },
  "luminance": 0.05673
}

Semantic roles & 50–950 ramp

primary
#502E90
secondary
#9AB664
accent
#DB4DAA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502E90

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

Preview Lab → · Contrast checker → · Palette generator →

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