#5027AB#5027AB

#5027AB is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.193 H 289.3°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#5027AB
RGBrgb(80, 39, 171)
HSLhsl(259, 63%, 41%)
HSVhsv(259, 77%, 67%)
CMYKcmyk(53.2%, 77.2%, 0%, 32.9%)
CIE-LABlab(29.65, 49.67, -63.44)
CIE-LCHlch(29.65, 80.57, 308.06°)
OKLaboklab(41.6% 0.0638 -0.1824)
OKLCHoklch(41.6% 0.193 289.3)
XYZxyz(11.3823, 6.0963, 39.0971)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5027AB #82AB27
analogous
#2740AB #5027AB #9227AB
triadic
#5027AB #AB5027 #27AB50
tetradic
#5027AB #AB2740 #82AB27 #27AB92
square
#5027AB #AB2740 #82AB27 #27AB92
split-complementary
#5027AB #AB9227 #40AB27
monochromatic
#211047 #391C79 #5027AB #6B3DD3 #916EDE

Accessibility & contrast

On white

9.46
#5027AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5027AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5027AB
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5027AB#FFFFFF#000000##FFFFFF
##5027AB1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#0043A9
Tritanopia (blue-blind)
#2D4C68
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5027ab;
/* rgb */ color: rgb(80, 39, 171);
/* oklch */ color: oklch(41.6% 0.193 289.3);
Tailwind
colors: {
  custom: {
    50: '#8b66c5',
    500: '#5027ab',
    950: '#000000',
  },
}
SCSS
$custom: #5027ab;
$custom-light: #8b66c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5027ab",
  "rgb": {
    "r": 80,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 258.636,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41595,
    "c": 0.19323,
    "h": 289.3
  },
  "luminance": 0.06097
}

Semantic roles & 50–950 ramp

primary
#5027AB
secondary
#A8C569
accent
#E642B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5027AB

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

Preview Lab → · Contrast checker → · Palette generator →

#5027AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva