#5026A4#5026A4

#5026A4 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.186 H 290.9°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#5026A4
RGBrgb(80, 38, 164)
HSLhsl(260, 62%, 40%)
HSVhsv(260, 77%, 64%)
CMYKcmyk(51.2%, 76.8%, 0%, 35.7%)
CIE-LABlab(28.83, 48.20, -60.58)
CIE-LCHlch(28.83, 77.41, 308.51°)
OKLaboklab(40.82% 0.0665 -0.174)
OKLCHoklch(40.82% 0.186 290.9)
XYZxyz(10.7003, 5.7716, 35.6650)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5026A4 #7AA426
analogous
#263BA4 #5026A4 #8F26A4
triadic
#5026A4 #A45026 #26A450
tetradic
#5026A4 #A4263B #7AA426 #26A48F
square
#5026A4 #A4263B #7AA426 #26A48F
split-complementary
#5026A4 #A48F26 #3BA426
monochromatic
#200F41 #381A72 #5026A4 #6A37D1 #8F68DC

Accessibility & contrast

On white

9.75
#5026A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5026A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5026A4
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5026A4#FFFFFF#000000##FFFFFF
##5026A41.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#0041A2
Tritanopia (blue-blind)
#334964
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5026a4;
/* rgb */ color: rgb(80, 38, 164);
/* oklch */ color: oklch(40.8% 0.186 290.9);
Tailwind
colors: {
  custom: {
    50: '#8a65c0',
    500: '#5026a4',
    950: '#000000',
  },
}
SCSS
$custom: #5026a4;
$custom-light: #8a65c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5026a4",
  "rgb": {
    "r": 80,
    "g": 38,
    "b": 164
  },
  "hsl": {
    "h": 260,
    "s": 62.376,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40816,
    "c": 0.1863,
    "h": 290.9
  },
  "luminance": 0.05772
}

Semantic roles & 50–950 ramp

primary
#5026A4
secondary
#A3C264
accent
#E542AF
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5026A4

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

Preview Lab → · Contrast checker → · Palette generator →

#5026A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva