#502ABC#502ABC

#502ABC is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.6% C 0.210 H 285.7°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#502ABC
RGBrgb(80, 42, 188)
HSLhsl(256, 63%, 45%)
HSVhsv(256, 78%, 74%)
CMYKcmyk(57.4%, 77.7%, 0%, 26.3%)
CIE-LABlab(31.79, 53.02, -70.06)
CIE-LCHlch(31.79, 87.86, 307.12°)
OKLaboklab(43.58% 0.0568 -0.2018)
OKLCHoklch(43.58% 0.21 285.7)
XYZxyz(13.2106, 6.9915, 48.2206)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502ABC #96BC2A
analogous
#2A4DBC #502ABC #992ABC
triadic
#502ABC #BC502A #2ABC50
tetradic
#502ABC #BC2A4D #96BC2A #2ABC99
square
#502ABC #BC2A4D #96BC2A #2ABC99
split-complementary
#502ABC #BC992A #4DBC2A
monochromatic
#251458 #3B1F8A #502ABC #704CD7 #987EE2

Accessibility & contrast

On white

8.76
#502ABC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#502ABC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502ABC
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502ABC#FFFFFF#000000##FFFFFF
##502ABC1.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC0
Deuteranopia (green-blind)
#0046B9
Tritanopia (blue-blind)
#185472
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #502abc;
/* rgb */ color: rgb(80, 42, 188);
/* oklch */ color: oklch(43.6% 0.210 285.7);
Tailwind
colors: {
  custom: {
    50: '#8e69d1',
    500: '#502abc',
    950: '#000000',
  },
}
SCSS
$custom: #502abc;
$custom-light: #8e69d1;
$custom-dark: #000000;
JSON
{
  "hex": "#502abc",
  "rgb": {
    "r": 80,
    "g": 42,
    "b": 188
  },
  "hsl": {
    "h": 255.616,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43582,
    "c": 0.20961,
    "h": 285.7
  },
  "luminance": 0.06992
}

Semantic roles & 50–950 ramp

primary
#502ABC
secondary
#B5CB77
accent
#E741BC
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #502ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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