#8126B1#8126B1

#8126B1 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.9% C 0.208 H 310.4°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#8126B1
RGBrgb(129, 38, 177)
HSLhsl(279, 65%, 42%)
HSVhsv(279, 79%, 69%)
CMYKcmyk(27.1%, 78.5%, 0%, 30.6%)
CIE-LABlab(36.42, 59.48, -55.71)
CIE-LCHlch(36.42, 81.49, 316.87°)
OKLaboklab(47.88% 0.1346 -0.158)
OKLCHoklch(47.88% 0.208 310.4)
XYZxyz(17.6806, 9.2281, 42.4363)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8126B1 #56B126
analogous
#3C26B1 #8126B1 #B1269B
triadic
#8126B1 #B18126 #26B181
tetradic
#8126B1 #B13C26 #56B126 #269BB1
square
#8126B1 #B13C26 #56B126 #269BB1
split-complementary
#8126B1 #9BB126 #26B13C
monochromatic
#38104C #5C1B7F #8126B1 #A13FD6 #BA71E0

Accessibility & contrast

On white

7.38
#8126B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#8126B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8126B1
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8126B1#FFFFFF#000000##FFFFFF
##8126B11.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B5
Deuteranopia (green-blind)
#0057AE
Tritanopia (blue-blind)
#7A496B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8126b1;
/* rgb */ color: rgb(129, 38, 177);
/* oklch */ color: oklch(47.9% 0.208 310.4);
Tailwind
colors: {
  custom: {
    50: '#ab6bc9',
    500: '#8126b1',
    950: '#000000',
  },
}
SCSS
$custom: #8126b1;
$custom-light: #ab6bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8126b1",
  "rgb": {
    "r": 129,
    "g": 38,
    "b": 177
  },
  "hsl": {
    "h": 279.281,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47876,
    "c": 0.20756,
    "h": 310.4
  },
  "luminance": 0.09228
}

Semantic roles & 50–950 ramp

primary
#8126B1
secondary
#8BC76B
accent
#E8407A
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8126B1

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

Preview Lab → · Contrast checker → · Palette generator →

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