#5126A6#5126A6

#5126A6 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.189 H 291.0°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#5126A6
RGBrgb(81, 38, 166)
HSLhsl(260, 63%, 40%)
HSVhsv(260, 77%, 65%)
CMYKcmyk(51.2%, 77.1%, 0%, 34.9%)
CIE-LABlab(29.13, 48.90, -61.29)
CIE-LCHlch(29.13, 78.40, 308.59°)
OKLaboklab(41.11% 0.0675 -0.1761)
OKLCHoklch(41.11% 0.189 291)
XYZxyz(10.9674, 5.8883, 36.6277)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5126A6 #7BA626
analogous
#263BA6 #5126A6 #9126A6
triadic
#5126A6 #A65126 #26A651
tetradic
#5126A6 #A6263B #7BA626 #26A691
square
#5126A6 #A6263B #7BA626 #26A691
split-complementary
#5126A6 #A69126 #3BA626
monochromatic
#200F42 #391B74 #5126A6 #6B38D1 #906ADD

Accessibility & contrast

On white

9.64
#5126A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5126A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5126A6
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5126A6#FFFFFF#000000##FFFFFF
##5126A61.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5126a6;
/* rgb */ color: rgb(81, 38, 166);
/* oklch */ color: oklch(41.1% 0.189 291.0);
Tailwind
colors: {
  custom: {
    50: '#8b65c2',
    500: '#5126a6',
    950: '#000000',
  },
}
SCSS
$custom: #5126a6;
$custom-light: #8b65c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5126a6",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 260.156,
    "s": 62.745,
    "l": 40
  },
  "oklch": {
    "l": 0.4111,
    "c": 0.18856,
    "h": 291
  },
  "luminance": 0.05889
}

Semantic roles & 50–950 ramp

primary
#5126A6
secondary
#A3C365
accent
#E642AF
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5126A6

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

Preview Lab → · Contrast checker → · Palette generator →

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