#7827A2#7827A2

#7827A2 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.6% C 0.190 H 311.0°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#7827A2
RGBrgb(120, 39, 162)
HSLhsl(280, 61%, 39%)
HSVhsv(280, 76%, 64%)
CMYKcmyk(25.9%, 75.9%, 0%, 36.5%)
CIE-LABlab(34.09, 54.23, -50.56)
CIE-LCHlch(34.09, 74.14, 317.01°)
OKLaboklab(45.61% 0.1246 -0.1432)
OKLCHoklch(45.61% 0.19 311)
XYZxyz(14.9916, 8.0531, 34.9401)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7827A2 #51A227
analogous
#3A27A2 #7827A2 #A2278F
triadic
#7827A2 #A27827 #27A278
tetradic
#7827A2 #A23A27 #51A227 #278FA2
square
#7827A2 #A23A27 #51A227 #278FA2
split-complementary
#7827A2 #8FA227 #27A23A
monochromatic
#2F0F3F #531B71 #7827A2 #9B37CF #B469DB

Accessibility & contrast

On white

8.04
#7827A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7827A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7827A2#FFFFFF#000000##FFFFFF
##7827A21.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#0D529F
Tritanopia (blue-blind)
#724463
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7827a2;
/* rgb */ color: rgb(120, 39, 162);
/* oklch */ color: oklch(45.6% 0.190 311.0);
Tailwind
colors: {
  custom: {
    50: '#a36abe',
    500: '#7827a2',
    950: '#000000',
  },
}
SCSS
$custom: #7827a2;
$custom-light: #a36abe;
$custom-dark: #000000;
JSON
{
  "hex": "#7827a2",
  "rgb": {
    "r": 120,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 279.512,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.45612,
    "c": 0.18978,
    "h": 311
  },
  "luminance": 0.08053
}

Semantic roles & 50–950 ramp

primary
#7827A2
secondary
#84C164
accent
#E4437A
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7827A2

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

Preview Lab → · Contrast checker → · Palette generator →

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