#502B90#502B90

#502B90 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.7% C 0.157 H 295.0°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#502B90
RGBrgb(80, 43, 144)
HSLhsl(262, 54%, 37%)
HSVhsv(262, 70%, 56%)
CMYKcmyk(44.4%, 70.1%, 0%, 43.5%)
CIE-LABlab(27.97, 40.08, -49.76)
CIE-LCHlch(27.97, 63.89, 308.85°)
OKLaboklab(39.67% 0.0665 -0.1423)
OKLCHoklch(39.67% 0.157 295)
XYZxyz(9.2048, 5.4466, 26.9465)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502B90 #6B902B
analogous
#2B3990 #502B90 #832B90
triadic
#502B90 #90502B #2B9050
tetradic
#502B90 #902B39 #6B902B #2B9083
square
#502B90 #902B39 #6B902B #2B9083
split-complementary
#502B90 #90832B #39902B
monochromatic
#1C0F32 #361D61 #502B90 #6A39BF #8C65D1

Accessibility & contrast

On white

10.05
#502B90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#502B90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502B90
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502B90#FFFFFF#000000##FFFFFF
##502B901.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004393
Deuteranopia (green-blind)
#00408E
Tritanopia (blue-blind)
#3F445A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #502b90;
/* rgb */ color: rgb(80, 43, 144);
/* oklch */ color: oklch(39.7% 0.157 295.0);
Tailwind
colors: {
  custom: {
    50: '#8767b1',
    500: '#502b90',
    950: '#000000',
  },
}
SCSS
$custom: #502b90;
$custom-light: #8767b1;
$custom-dark: #000000;
JSON
{
  "hex": "#502b90",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 144
  },
  "hsl": {
    "h": 261.98,
    "s": 54.011,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39667,
    "c": 0.15703,
    "h": 295
  },
  "luminance": 0.05447
}

Semantic roles & 50–950 ramp

primary
#502B90
secondary
#97B760
accent
#DD4AA8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502B90

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

Preview Lab → · Contrast checker → · Palette generator →

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