#7827AA#7827AA

#7827AA is a mid, vivid violet. Relative luminance 0.083; OKLCH L 46.2% C 0.197 H 308.5°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#7827AA
RGBrgb(120, 39, 170)
HSLhsl(277, 63%, 41%)
HSVhsv(277, 77%, 67%)
CMYKcmyk(29.4%, 77.1%, 0%, 33.3%)
CIE-LABlab(34.69, 55.98, -54.39)
CIE-LCHlch(34.69, 78.05, 315.82°)
OKLaboklab(46.23% 0.123 -0.1545)
OKLCHoklch(46.23% 0.197 308.5)
XYZxyz(15.7254, 8.3467, 38.8051)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7827AA #59AA27
analogous
#3627AA #7827AA #AA279A
triadic
#7827AA #AA7827 #27AA78
tetradic
#7827AA #AA3627 #59AA27 #279AAA
square
#7827AA #AA3627 #59AA27 #279AAA
split-complementary
#7827AA #9AAA27 #27AA36
monochromatic
#321046 #551C78 #7827AA #993CD2 #B36EDE

Accessibility & contrast

On white

7.87
#7827AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7827AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7827AA
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7827AA#FFFFFF#000000##FFFFFF
##7827AA1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAE
Deuteranopia (green-blind)
#0052A7
Tritanopia (blue-blind)
#704768
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7827aa;
/* rgb */ color: rgb(120, 39, 170);
/* oklch */ color: oklch(46.2% 0.197 308.5);
Tailwind
colors: {
  custom: {
    50: '#a46ac4',
    500: '#7827aa',
    950: '#000000',
  },
}
SCSS
$custom: #7827aa;
$custom-light: #a46ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#7827aa",
  "rgb": {
    "r": 120,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 277.099,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46225,
    "c": 0.19745,
    "h": 308.5
  },
  "luminance": 0.08346
}

Semantic roles & 50–950 ramp

primary
#7827AA
secondary
#8CC469
accent
#E64281
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7827AA

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

Preview Lab → · Contrast checker → · Palette generator →

#7827AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva