#5126A3#5126A3

#5126A3 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.185 H 291.7°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#5126A3
RGBrgb(81, 38, 163)
HSLhsl(261, 62%, 39%)
HSVhsv(261, 77%, 64%)
CMYKcmyk(50.3%, 76.7%, 0%, 36.1%)
CIE-LABlab(28.85, 48.08, -59.93)
CIE-LCHlch(28.85, 76.83, 308.74°)
OKLaboklab(40.83% 0.0683 -0.1721)
OKLCHoklch(40.83% 0.185 291.7)
XYZxyz(10.6954, 5.7795, 35.1952)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5126A3 #78A326
analogous
#263AA3 #5126A3 #9026A3
triadic
#5126A3 #A35126 #26A351
tetradic
#5126A3 #A3263A #78A326 #26A390
square
#5126A3 #A3263A #78A326 #26A390
split-complementary
#5126A3 #A39026 #3AA326
monochromatic
#200F40 #381A71 #5126A3 #6B36D0 #9068DC

Accessibility & contrast

On white

9.74
#5126A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5126A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5126A3
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5126A3#FFFFFF#000000##FFFFFF
##5126A31.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A7
Deuteranopia (green-blind)
#0041A1
Tritanopia (blue-blind)
#364863
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5126a3;
/* rgb */ color: rgb(81, 38, 163);
/* oklch */ color: oklch(40.8% 0.185 291.7);
Tailwind
colors: {
  custom: {
    50: '#8a65bf',
    500: '#5126a3',
    950: '#000000',
  },
}
SCSS
$custom: #5126a3;
$custom-light: #8a65bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5126a3",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 163
  },
  "hsl": {
    "h": 260.64,
    "s": 62.189,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40828,
    "c": 0.18517,
    "h": 291.7
  },
  "luminance": 0.0578
}

Semantic roles & 50–950 ramp

primary
#5126A3
secondary
#A1C263
accent
#E543AD
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5126A3

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

Preview Lab → · Contrast checker → · Palette generator →

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