#5126A9#5126A9

#5126A9 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.192 H 290.3°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#5126A9
RGBrgb(81, 38, 169)
HSLhsl(260, 63%, 41%)
HSVhsv(260, 78%, 66%)
CMYKcmyk(52.1%, 77.5%, 0%, 33.7%)
CIE-LABlab(29.41, 49.72, -62.63)
CIE-LCHlch(29.41, 79.97, 308.45°)
OKLaboklab(41.39% 0.0667 -0.18)
OKLCHoklch(41.39% 0.192 290.3)
XYZxyz(11.2458, 5.9996, 38.0939)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5126A9 #7EA926
analogous
#263CA9 #5126A9 #9226A9
triadic
#5126A9 #A95126 #26A951
tetradic
#5126A9 #A9263C #7EA926 #26A992
square
#5126A9 #A9263C #7EA926 #26A992
split-complementary
#5126A9 #A99226 #3CA926
monochromatic
#211045 #391B77 #5126A9 #6C3AD3 #916CDE

Accessibility & contrast

On white

9.55
#5126A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5126A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5126A9
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5126A9#FFFFFF#000000##FFFFFF
##5126A91.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#0042A7
Tritanopia (blue-blind)
#314B67
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5126a9;
/* rgb */ color: rgb(81, 38, 169);
/* oklch */ color: oklch(41.4% 0.192 290.3);
Tailwind
colors: {
  custom: {
    50: '#8b66c4',
    500: '#5126a9',
    950: '#000000',
  },
}
SCSS
$custom: #5126a9;
$custom-light: #8b66c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5126a9",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 169
  },
  "hsl": {
    "h": 259.695,
    "s": 63.285,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41393,
    "c": 0.19194,
    "h": 290.3
  },
  "luminance": 0.06
}

Semantic roles & 50–950 ramp

primary
#5126A9
secondary
#A5C467
accent
#E641B0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5126A9

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

Preview Lab → · Contrast checker → · Palette generator →

#5126A9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva