#502E93#502E93

#502E93 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.3% C 0.157 H 293.6°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#502E93
RGBrgb(80, 46, 147)
HSLhsl(260, 52%, 38%)
HSVhsv(260, 69%, 58%)
CMYKcmyk(45.6%, 68.7%, 0%, 42.4%)
CIE-LABlab(28.81, 39.29, -50.23)
CIE-LCHlch(28.81, 63.77, 308.03°)
OKLaboklab(40.35% 0.0628 -0.1437)
OKLCHoklch(40.35% 0.157 293.6)
XYZxyz(9.5503, 5.7658, 28.2078)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502E93 #71932E
analogous
#2E3E93 #502E93 #822E93
triadic
#502E93 #93502E #2E9350
tetradic
#502E93 #932E3E #71932E #2E9382
square
#502E93 #932E3E #71932E #2E9382
split-complementary
#502E93 #93822E #3E932E
monochromatic
#1D1136 #371F64 #502E93 #693DC2 #8D6BD1

Accessibility & contrast

On white

9.75
#502E93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#502E93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502E93
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502E93#FFFFFF#000000##FFFFFF
##502E931.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004596
Deuteranopia (green-blind)
#004291
Tritanopia (blue-blind)
#3D475C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #502e93;
/* rgb */ color: rgb(80, 46, 147);
/* oklch */ color: oklch(40.3% 0.157 293.6);
Tailwind
colors: {
  custom: {
    50: '#8769b3',
    500: '#502e93',
    950: '#000000',
  },
}
SCSS
$custom: #502e93;
$custom-light: #8769b3;
$custom-dark: #000000;
JSON
{
  "hex": "#502e93",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 147
  },
  "hsl": {
    "h": 260.198,
    "s": 52.332,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40347,
    "c": 0.15681,
    "h": 293.6
  },
  "luminance": 0.05766
}

Semantic roles & 50–950 ramp

primary
#502E93
secondary
#9CB865
accent
#DC4CAB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502E93

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

Preview Lab → · Contrast checker → · Palette generator →

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