#5126A1#5126A1

#5126A1 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.183 H 292.1°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#5126A1
RGBrgb(81, 38, 161)
HSLhsl(261, 62%, 39%)
HSVhsv(261, 76%, 63%)
CMYKcmyk(49.7%, 76.4%, 0%, 36.9%)
CIE-LABlab(28.66, 47.53, -59.02)
CIE-LCHlch(28.66, 75.78, 308.84°)
OKLaboklab(40.64% 0.0689 -0.1694)
OKLCHoklch(40.64% 0.183 292.1)
XYZxyz(10.5177, 5.7084, 34.2590)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5126A1 #76A126
analogous
#2638A1 #5126A1 #8F26A1
triadic
#5126A1 #A15126 #26A151
tetradic
#5126A1 #A12638 #76A126 #26A18F
square
#5126A1 #A12638 #76A126 #26A18F
split-complementary
#5126A1 #A18F26 #38A126
monochromatic
#1F0F3E #381A6F #5126A1 #6B35CF #8F66DB

Accessibility & contrast

On white

9.80
#5126A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5126A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5126A1
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5126A1#FFFFFF#000000##FFFFFF
##5126A11.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#00419F
Tritanopia (blue-blind)
#374862
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5126a1;
/* rgb */ color: rgb(81, 38, 161);
/* oklch */ color: oklch(40.6% 0.183 292.1);
Tailwind
colors: {
  custom: {
    50: '#8a65be',
    500: '#5126a1',
    950: '#000000',
  },
}
SCSS
$custom: #5126a1;
$custom-light: #8a65be;
$custom-dark: #000000;
JSON
{
  "hex": "#5126a1",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 161
  },
  "hsl": {
    "h": 260.976,
    "s": 61.809,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40642,
    "c": 0.18289,
    "h": 292.1
  },
  "luminance": 0.05709
}

Semantic roles & 50–950 ramp

primary
#5126A1
secondary
#A0C162
accent
#E543AC
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5126A1

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

Preview Lab → · Contrast checker → · Palette generator →

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