#502EAF#502EAF

#502EAF is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.191 H 287.5°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#502EAF
RGBrgb(80, 46, 175)
HSLhsl(256, 58%, 43%)
HSVhsv(256, 74%, 69%)
CMYKcmyk(54.3%, 73.7%, 0%, 31.4%)
CIE-LABlab(31.24, 47.36, -63.23)
CIE-LCHlch(31.24, 79.00, 306.83°)
OKLaboklab(42.82% 0.0573 -0.1819)
OKLCHoklch(42.82% 0.191 287.5)
XYZxyz(12.0208, 6.7540, 41.2194)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502EAF #8DAF2E
analogous
#2E4CAF #502EAF #902EAF
triadic
#502EAF #AF502E #2EAF50
tetradic
#502EAF #AF2E4C #8DAF2E #2EAF90
square
#502EAF #AF2E4C #8DAF2E #2EAF90
split-complementary
#502EAF #AF902E #4CAF2E
monochromatic
#24154E #3A217F #502EAF #6E4BD0 #957BDC

Accessibility & contrast

On white

8.93
#502EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#502EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502EAF
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502EAF#FFFFFF#000000##FFFFFF
##502EAF1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#29516C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #502eaf;
/* rgb */ color: rgb(80, 46, 175);
/* oklch */ color: oklch(42.8% 0.191 287.5);
Tailwind
colors: {
  custom: {
    50: '#8b6ac8',
    500: '#502eaf',
    950: '#000000',
  },
}
SCSS
$custom: #502eaf;
$custom-light: #8b6ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#502eaf",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 175
  },
  "hsl": {
    "h": 255.814,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42824,
    "c": 0.19065,
    "h": 287.5
  },
  "luminance": 0.06755
}

Semantic roles & 50–950 ramp

primary
#502EAF
secondary
#AFC574
accent
#E246B9
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #502EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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