#7826AB#7826AB

#7826AB is a mid, vivid violet. Relative luminance 0.083; OKLCH L 46.2% C 0.199 H 308.3°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#7826AB
RGBrgb(120, 38, 171)
HSLhsl(277, 64%, 41%)
HSVhsv(277, 78%, 67%)
CMYKcmyk(29.8%, 77.8%, 0%, 32.9%)
CIE-LABlab(34.64, 56.58, -55.08)
CIE-LCHlch(34.64, 78.96, 315.77°)
OKLaboklab(46.21% 0.1237 -0.1565)
OKLCHoklch(46.21% 0.199 308.3)
XYZxyz(15.7880, 8.3198, 39.2944)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7826AB #59AB26
analogous
#3526AB #7826AB #AB269B
triadic
#7826AB #AB7826 #26AB78
tetradic
#7826AB #AB3526 #59AB26 #269BAB
square
#7826AB #AB3526 #59AB26 #269BAB
split-complementary
#7826AB #9BAB26 #26AB35
monochromatic
#321047 #551B79 #7826AB #993BD3 #B36DDF

Accessibility & contrast

On white

7.88
#7826AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7826AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7826AB
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7826AB#FFFFFF#000000##FFFFFF
##7826AB1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#0052A8
Tritanopia (blue-blind)
#704768
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7826ab;
/* rgb */ color: rgb(120, 38, 171);
/* oklch */ color: oklch(46.2% 0.199 308.3);
Tailwind
colors: {
  custom: {
    50: '#a46ac5',
    500: '#7826ab',
    950: '#000000',
  },
}
SCSS
$custom: #7826ab;
$custom-light: #a46ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#7826ab",
  "rgb": {
    "r": 120,
    "g": 38,
    "b": 171
  },
  "hsl": {
    "h": 276.992,
    "s": 63.636,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46211,
    "c": 0.19944,
    "h": 308.3
  },
  "luminance": 0.0832
}

Semantic roles & 50–950 ramp

primary
#7826AB
secondary
#8CC568
accent
#E74181
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7826AB

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

Preview Lab → · Contrast checker → · Palette generator →

#7826AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva