#5126C7#5126C7

#5126C7 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.4% C 0.225 H 284.7°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#5126C7
RGBrgb(81, 38, 199)
HSLhsl(256, 68%, 46%)
HSVhsv(256, 81%, 78%)
CMYKcmyk(59.3%, 80.9%, 0%, 22%)
CIE-LABlab(32.39, 57.93, -75.53)
CIE-LCHlch(32.39, 95.19, 307.49°)
OKLaboklab(44.35% 0.0573 -0.2177)
OKLCHoklch(44.35% 0.225 284.7)
XYZxyz(14.3921, 7.2582, 54.6643)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5126C7 #9CC726
analogous
#264CC7 #5126C7 #A226C7
triadic
#5126C7 #C75126 #26C751
tetradic
#5126C7 #C7264C #9CC726 #26C7A2
square
#5126C7 #C7264C #9CC726 #26C7A2
split-complementary
#5126C7 #C7A226 #4CC726
monochromatic
#271260 #3C1C94 #5126C7 #744DDD #9C81E7

Accessibility & contrast

On white

8.57
#5126C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5126C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5126C7
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5126C7#FFFFFF#000000##FFFFFF
##5126C71.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051CB
Deuteranopia (green-blind)
#0047C4
Tritanopia (blue-blind)
#005778
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5126c7;
/* rgb */ color: rgb(81, 38, 199);
/* oklch */ color: oklch(44.4% 0.225 284.7);
Tailwind
colors: {
  custom: {
    50: '#9067d9',
    500: '#5126c7',
    950: '#000000',
  },
}
SCSS
$custom: #5126c7;
$custom-light: #9067d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5126c7",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 199
  },
  "hsl": {
    "h": 256.025,
    "s": 67.932,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44353,
    "c": 0.22509,
    "h": 284.7
  },
  "luminance": 0.07259
}

Semantic roles & 50–950 ramp

primary
#5126C7
secondary
#B8CF79
accent
#EB3DBC
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0615
muted
#7E7A83

Preview Lab

Preview with #5126C7

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

Preview Lab → · Contrast checker → · Palette generator →

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