#8126B4#8126B4

#8126B4 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.1% C 0.210 H 309.6°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#8126B4
RGBrgb(129, 38, 180)
HSLhsl(278, 65%, 43%)
HSVhsv(278, 79%, 71%)
CMYKcmyk(28.3%, 78.9%, 0%, 29.4%)
CIE-LABlab(36.65, 60.11, -57.12)
CIE-LCHlch(36.65, 82.92, 316.46°)
OKLaboklab(48.11% 0.1339 -0.1622)
OKLCHoklch(48.11% 0.21 309.6)
XYZxyz(17.9829, 9.3490, 44.0284)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8126B4 #59B426
analogous
#3A26B4 #8126B4 #B426A0
triadic
#8126B4 #B48126 #26B481
tetradic
#8126B4 #B43A26 #59B426 #26A0B4
square
#8126B4 #B43A26 #59B426 #26A0B4
split-complementary
#8126B4 #A0B426 #26B43A
monochromatic
#39114F #5D1B81 #8126B4 #A140D7 #BA73E1

Accessibility & contrast

On white

7.32
#8126B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8126B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8126B4
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8126B4#FFFFFF#000000##FFFFFF
##8126B41.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0057B1
Tritanopia (blue-blind)
#794A6D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8126b4;
/* rgb */ color: rgb(129, 38, 180);
/* oklch */ color: oklch(48.1% 0.210 309.6);
Tailwind
colors: {
  custom: {
    50: '#ab6bcb',
    500: '#8126b4',
    950: '#000000',
  },
}
SCSS
$custom: #8126b4;
$custom-light: #ab6bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#8126b4",
  "rgb": {
    "r": 129,
    "g": 38,
    "b": 180
  },
  "hsl": {
    "h": 278.451,
    "s": 65.138,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48107,
    "c": 0.21032,
    "h": 309.6
  },
  "luminance": 0.09349
}

Semantic roles & 50–950 ramp

primary
#8126B4
secondary
#8EC96D
accent
#E8407C
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110713
muted
#807A82

Preview Lab

Preview with #8126B4

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

Preview Lab → · Contrast checker → · Palette generator →

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