#5126A8#5126A8

#5126A8 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.191 H 290.5°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#5126A8
RGBrgb(81, 38, 168)
HSLhsl(260, 63%, 40%)
HSVhsv(260, 77%, 66%)
CMYKcmyk(51.8%, 77.4%, 0%, 34.1%)
CIE-LABlab(29.32, 49.45, -62.18)
CIE-LCHlch(29.32, 79.45, 308.49°)
OKLaboklab(41.3% 0.0669 -0.1787)
OKLCHoklch(41.3% 0.191 290.5)
XYZxyz(11.1523, 5.9622, 37.6014)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5126A8 #7DA826
analogous
#263CA8 #5126A8 #9226A8
triadic
#5126A8 #A85126 #26A851
tetradic
#5126A8 #A8263C #7DA826 #26A892
square
#5126A8 #A8263C #7DA826 #26A892
split-complementary
#5126A8 #A89226 #3CA826
monochromatic
#210F44 #391B76 #5126A8 #6C39D2 #916BDE

Accessibility & contrast

On white

9.58
#5126A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5126A8
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5126A8#FFFFFF#000000##FFFFFF
##5126A81.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#0042A6
Tritanopia (blue-blind)
#324A66
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5126a8;
/* rgb */ color: rgb(81, 38, 168);
/* oklch */ color: oklch(41.3% 0.191 290.5);
Tailwind
colors: {
  custom: {
    50: '#8b66c3',
    500: '#5126a8',
    950: '#000000',
  },
}
SCSS
$custom: #5126a8;
$custom-light: #8b66c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5126a8",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 168
  },
  "hsl": {
    "h": 259.846,
    "s": 63.107,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41298,
    "c": 0.19082,
    "h": 290.5
  },
  "luminance": 0.05963
}

Semantic roles & 50–950 ramp

primary
#5126A8
secondary
#A5C466
accent
#E642B0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5126A8

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

Preview Lab → · Contrast checker → · Palette generator →

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