#5126A0#5126A0

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

Color values

HEX#5126A0
RGBrgb(81, 38, 160)
HSLhsl(261, 62%, 39%)
HSVhsv(261, 76%, 63%)
CMYKcmyk(49.4%, 76.3%, 0%, 37.3%)
CIE-LABlab(28.57, 47.25, -58.57)
CIE-LCHlch(28.57, 75.25, 308.90°)
OKLaboklab(40.55% 0.0692 -0.1681)
OKLCHoklch(40.55% 0.182 292.4)
XYZxyz(10.4298, 5.6733, 33.7964)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5126A0 #75A026
analogous
#2638A0 #5126A0 #8E26A0
triadic
#5126A0 #A05126 #26A051
tetradic
#5126A0 #A02638 #75A026 #26A08E
square
#5126A0 #A02638 #75A026 #26A08E
split-complementary
#5126A0 #A08E26 #38A026
monochromatic
#1F0F3D #381A6F #5126A0 #6B34CF #8F66DB

Accessibility & contrast

On white

9.84
#5126A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5126A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5126A0
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5126A0#FFFFFF#000000##FFFFFF
##5126A01.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A3
Deuteranopia (green-blind)
#00419E
Tritanopia (blue-blind)
#384761
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5126a0;
/* rgb */ color: rgb(81, 38, 160);
/* oklch */ color: oklch(40.6% 0.182 292.4);
Tailwind
colors: {
  custom: {
    50: '#8a65bd',
    500: '#5126a0',
    950: '#000000',
  },
}
SCSS
$custom: #5126a0;
$custom-light: #8a65bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5126a0",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 160
  },
  "hsl": {
    "h": 261.148,
    "s": 61.616,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4055,
    "c": 0.18175,
    "h": 292.4
  },
  "luminance": 0.05674
}

Semantic roles & 50–950 ramp

primary
#5126A0
secondary
#9FC061
accent
#E543AC
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #5126A0

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

Preview Lab → · Contrast checker → · Palette generator →

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