#502EAC#502EAC

#502EAC is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.187 H 288.0°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#502EAC
RGBrgb(80, 46, 172)
HSLhsl(256, 58%, 43%)
HSVhsv(256, 73%, 67%)
CMYKcmyk(53.5%, 73.3%, 0%, 32.5%)
CIE-LABlab(30.97, 46.49, -61.89)
CIE-LCHlch(30.97, 77.40, 306.92°)
OKLaboklab(42.55% 0.058 -0.1779)
OKLCHoklch(42.55% 0.187 288)
XYZxyz(11.7295, 6.6374, 39.6848)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502EAC #8AAC2E
analogous
#2E4BAC #502EAC #8F2EAC
triadic
#502EAC #AC502E #2EAC50
tetradic
#502EAC #AC2E4B #8AAC2E #2EAC8F
square
#502EAC #AC2E4B #8AAC2E #2EAC8F
split-complementary
#502EAC #AC8F2E #4BAC2E
monochromatic
#23144B #3A217C #502EAC #6D49CE #9479DB

Accessibility & contrast

On white

9.02
#502EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#502EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502EAC
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502EAC#FFFFFF#000000##FFFFFF
##502EAC1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB0
Deuteranopia (green-blind)
#0046AA
Tritanopia (blue-blind)
#2C506A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #502eac;
/* rgb */ color: rgb(80, 46, 172);
/* oklch */ color: oklch(42.5% 0.187 288.0);
Tailwind
colors: {
  custom: {
    50: '#8b6ac6',
    500: '#502eac',
    950: '#000000',
  },
}
SCSS
$custom: #502eac;
$custom-light: #8b6ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#502eac",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 172
  },
  "hsl": {
    "h": 256.19,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42547,
    "c": 0.1871,
    "h": 288
  },
  "luminance": 0.06638
}

Semantic roles & 50–950 ramp

primary
#502EAC
secondary
#AEC372
accent
#E147B7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #502EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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