#502EBA#502EBA

#502EBA is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 43.9% C 0.203 H 285.5°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#502EBA
RGBrgb(80, 46, 186)
HSLhsl(255, 60%, 45%)
HSVhsv(255, 75%, 73%)
CMYKcmyk(57%, 75.3%, 0%, 27.1%)
CIE-LABlab(32.27, 50.53, -68.08)
CIE-LCHlch(32.27, 84.79, 306.58°)
OKLaboklab(43.86% 0.0546 -0.196)
OKLCHoklch(43.86% 0.204 285.5)
XYZxyz(13.1455, 7.2039, 47.1427)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502EBA #98BA2E
analogous
#2E52BA #502EBA #962EBA
triadic
#502EBA #BA502E #2EBA50
tetradic
#502EBA #BA2E52 #98BA2E #2EBA96
square
#502EBA #BA2E52 #98BA2E #2EBA96
split-complementary
#502EBA #BA962E #52BA2E
monochromatic
#261658 #3B2289 #502EBA #7151D4 #9982E0

Accessibility & contrast

On white

8.60
#502EBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#502EBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502EBA
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502EBA#FFFFFF#000000##FFFFFF
##502EBA1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BE
Deuteranopia (green-blind)
#0048B7
Tritanopia (blue-blind)
#1B5572
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #502eba;
/* rgb */ color: rgb(80, 46, 186);
/* oklch */ color: oklch(43.9% 0.203 285.5);
Tailwind
colors: {
  custom: {
    50: '#8d6bd0',
    500: '#502eba',
    950: '#000000',
  },
}
SCSS
$custom: #502eba;
$custom-light: #8d6bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#502eba",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 186
  },
  "hsl": {
    "h": 254.571,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43859,
    "c": 0.2035,
    "h": 285.5
  },
  "luminance": 0.07205
}

Semantic roles & 50–950 ramp

primary
#502EBA
secondary
#B6C97B
accent
#E344BD
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #502EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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