#5018A1#5018A1

#5018A1 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 39.1% C 0.195 H 293.3°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#5018A1
RGBrgb(80, 24, 161)
HSLhsl(265, 74%, 36%)
HSVhsv(265, 85%, 63%)
CMYKcmyk(50.3%, 85.1%, 0%, 36.9%)
CIE-LABlab(26.54, 53.20, -62.52)
CIE-LCHlch(26.54, 82.09, 310.40°)
OKLaboklab(39.14% 0.0773 -0.1796)
OKLCHoklch(39.14% 0.195 293.3)
XYZxyz(10.0661, 4.9316, 34.1328)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5018A1 #69A118
analogous
#1824A1 #5018A1 #9518A1
triadic
#5018A1 #A15018 #18A150
tetradic
#5018A1 #A11824 #69A118 #18A195
square
#5018A1 #A11824 #69A118 #18A195
split-complementary
#5018A1 #A19518 #24A118
monochromatic
#1B0836 #36106C #5018A1 #6A20D6 #8C4FE5

Accessibility & contrast

On white

10.57
#5018A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5018A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5018A1
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5018A1#FFFFFF#000000##FFFFFF
##5018A11.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#003C9F
Tritanopia (blue-blind)
#36425F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5018a1;
/* rgb */ color: rgb(80, 24, 161);
/* oklch */ color: oklch(39.1% 0.195 293.3);
Tailwind
colors: {
  custom: {
    50: '#8a5ebe',
    500: '#5018a1',
    950: '#000000',
  },
}
SCSS
$custom: #5018a1;
$custom-light: #8a5ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#5018a1",
  "rgb": {
    "r": 80,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 264.526,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3914,
    "c": 0.19548,
    "h": 293.3
  },
  "luminance": 0.04932
}

Semantic roles & 50–950 ramp

primary
#5018A1
secondary
#95C74E
accent
#F137A5
background
#F9F5FB
surface
#F1EAF7
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #5018A1

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

Preview Lab → · Contrast checker → · Palette generator →

#5018A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva