#8126C5#8126C5

#8126C5 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.5% C 0.226 H 305.0°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#8126C5
RGBrgb(129, 38, 197)
HSLhsl(274, 68%, 46%)
HSVhsv(274, 81%, 77%)
CMYKcmyk(34.5%, 80.7%, 0%, 22.7%)
CIE-LABlab(37.99, 63.78, -64.94)
CIE-LCHlch(37.99, 91.02, 314.48°)
OKLaboklab(49.47% 0.1296 -0.1851)
OKLCHoklch(49.47% 0.226 305)
XYZxyz(19.8221, 10.0847, 53.7148)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8126C5 #6AC526
analogous
#3226C5 #8126C5 #C526B9
triadic
#8126C5 #C58126 #26C581
tetradic
#8126C5 #C53226 #6AC526 #26B9C5
square
#8126C5 #C53226 #6AC526 #26B9C5
split-complementary
#8126C5 #B9C526 #26C532
monochromatic
#3E125E #5F1C92 #8126C5 #9F4CDC #BA7FE6

Accessibility & contrast

On white

6.96
#8126C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#8126C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8126C5
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8126C5#FFFFFF#000000##FFFFFF
##8126C51.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C9
Deuteranopia (green-blind)
#0059C2
Tritanopia (blue-blind)
#745177
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8126c5;
/* rgb */ color: rgb(129, 38, 197);
/* oklch */ color: oklch(49.5% 0.226 305.0);
Tailwind
colors: {
  custom: {
    50: '#ac6cd8',
    500: '#8126c5',
    950: '#000000',
  },
}
SCSS
$custom: #8126c5;
$custom-light: #ac6cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#8126c5",
  "rgb": {
    "r": 129,
    "g": 38,
    "b": 197
  },
  "hsl": {
    "h": 274.34,
    "s": 67.66,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49466,
    "c": 0.22598,
    "h": 305
  },
  "luminance": 0.10085
}

Semantic roles & 50–950 ramp

primary
#8126C5
secondary
#9DCF78
accent
#EB3D87
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110815
muted
#807A83

Preview Lab

Preview with #8126C5

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

Preview Lab → · Contrast checker → · Palette generator →

#8126C5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva