#5126A7#5126A7

#5126A7 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.190 H 290.8°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#5126A7
RGBrgb(81, 38, 167)
HSLhsl(260, 63%, 40%)
HSVhsv(260, 77%, 65%)
CMYKcmyk(51.5%, 77.2%, 0%, 34.5%)
CIE-LABlab(29.22, 49.18, -61.74)
CIE-LCHlch(29.22, 78.93, 308.54°)
OKLaboklab(41.2% 0.0672 -0.1774)
OKLCHoklch(41.2% 0.19 290.8)
XYZxyz(11.0595, 5.9251, 37.1127)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5126A7 #7CA726
analogous
#263BA7 #5126A7 #9126A7
triadic
#5126A7 #A75126 #26A751
tetradic
#5126A7 #A7263B #7CA726 #26A791
square
#5126A7 #A7263B #7CA726 #26A791
split-complementary
#5126A7 #A79126 #3BA726
monochromatic
#210F43 #391B75 #5126A7 #6C38D2 #916ADD

Accessibility & contrast

On white

9.61
#5126A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5126A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5126A7
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5126A7#FFFFFF#000000##FFFFFF
##5126A71.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#0042A5
Tritanopia (blue-blind)
#334A65
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5126a7;
/* rgb */ color: rgb(81, 38, 167);
/* oklch */ color: oklch(41.2% 0.190 290.8);
Tailwind
colors: {
  custom: {
    50: '#8b65c2',
    500: '#5126a7',
    950: '#000000',
  },
}
SCSS
$custom: #5126a7;
$custom-light: #8b65c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5126a7",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 167
  },
  "hsl": {
    "h": 260,
    "s": 62.927,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41204,
    "c": 0.18968,
    "h": 290.8
  },
  "luminance": 0.05926
}

Semantic roles & 50–950 ramp

primary
#5126A7
secondary
#A4C365
accent
#E642AF
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5126A7

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

Preview Lab → · Contrast checker → · Palette generator →

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