#5126B0#5126B0

#5126B0 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.200 H 288.9°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#5126B0
RGBrgb(81, 38, 176)
HSLhsl(259, 64%, 42%)
HSVhsv(259, 78%, 69%)
CMYKcmyk(54%, 78.4%, 0%, 31%)
CIE-LABlab(30.08, 51.65, -65.73)
CIE-LCHlch(30.08, 83.59, 308.16°)
OKLaboklab(42.07% 0.0646 -0.1891)
OKLCHoklch(42.07% 0.2 288.9)
XYZxyz(11.9206, 6.2696, 41.6479)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5126B0 #85B026
analogous
#2640B0 #5126B0 #9626B0
triadic
#5126B0 #B05126 #26B051
tetradic
#5126B0 #B02640 #85B026 #26B096
square
#5126B0 #B02640 #85B026 #26B096
split-complementary
#5126B0 #B09626 #40B026
monochromatic
#23104B #3A1B7E #5126B0 #6D3ED5 #9370E0

Accessibility & contrast

On white

9.32
#5126B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5126B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5126B0
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5126B0#FFFFFF#000000##FFFFFF
##5126B01.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB4
Deuteranopia (green-blind)
#0043AD
Tritanopia (blue-blind)
#2B4E6B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5126b0;
/* rgb */ color: rgb(81, 38, 176);
/* oklch */ color: oklch(42.1% 0.200 288.9);
Tailwind
colors: {
  custom: {
    50: '#8c66c9',
    500: '#5126b0',
    950: '#000000',
  },
}
SCSS
$custom: #5126b0;
$custom-light: #8c66c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5126b0",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 176
  },
  "hsl": {
    "h": 258.696,
    "s": 64.486,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42065,
    "c": 0.19979,
    "h": 288.9
  },
  "luminance": 0.0627
}

Semantic roles & 50–950 ramp

primary
#5126B0
secondary
#AAC76B
accent
#E740B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5126B0

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

Preview Lab → · Contrast checker → · Palette generator →

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