#502CBA#502CBA

#502CBA is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.6% C 0.205 H 285.8°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#502CBA
RGBrgb(80, 44, 186)
HSLhsl(255, 62%, 45%)
HSVhsv(255, 76%, 73%)
CMYKcmyk(57%, 76.3%, 0%, 27.1%)
CIE-LABlab(31.92, 51.51, -68.65)
CIE-LCHlch(31.92, 85.82, 306.88°)
OKLaboklab(43.62% 0.056 -0.1977)
OKLCHoklch(43.62% 0.205 285.8)
XYZxyz(13.0692, 7.0512, 47.1172)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502CBA #96BA2C
analogous
#2C4FBA #502CBA #972CBA
triadic
#502CBA #BA502C #2CBA50
tetradic
#502CBA #BA2C4F #96BA2C #2CBA97
square
#502CBA #BA2C4F #96BA2C #2CBA97
split-complementary
#502CBA #BA972C #4FBA2C
monochromatic
#251557 #3B2089 #502CBA #704ED5 #9880E1

Accessibility & contrast

On white

8.71
#502CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#502CBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502CBA
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502CBA#FFFFFF#000000##FFFFFF
##502CBA1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBE
Deuteranopia (green-blind)
#0047B7
Tritanopia (blue-blind)
#1B5472
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #502cba;
/* rgb */ color: rgb(80, 44, 186);
/* oklch */ color: oklch(43.6% 0.205 285.8);
Tailwind
colors: {
  custom: {
    50: '#8d6ad0',
    500: '#502cba',
    950: '#000000',
  },
}
SCSS
$custom: #502cba;
$custom-light: #8d6ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#502cba",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 255.211,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43618,
    "c": 0.20546,
    "h": 285.8
  },
  "luminance": 0.07052
}

Semantic roles & 50–950 ramp

primary
#502CBA
secondary
#B5CA78
accent
#E543BC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #502CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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