#7827A8#7827A8

#7827A8 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 46.1% C 0.196 H 309.1°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#7827A8
RGBrgb(120, 39, 168)
HSLhsl(278, 62%, 41%)
HSVhsv(278, 77%, 66%)
CMYKcmyk(28.6%, 76.8%, 0%, 34.1%)
CIE-LABlab(34.54, 55.54, -53.44)
CIE-LCHlch(34.54, 77.07, 316.10°)
OKLaboklab(46.07% 0.1234 -0.1517)
OKLCHoklch(46.07% 0.196 309.1)
XYZxyz(15.5377, 8.2716, 37.8162)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7827A8 #57A827
analogous
#3727A8 #7827A8 #A82798
triadic
#7827A8 #A87827 #27A878
tetradic
#7827A8 #A83727 #57A827 #2798A8
square
#7827A8 #A83727 #57A827 #2798A8
split-complementary
#7827A8 #98A827 #27A837
monochromatic
#311045 #551B76 #7827A8 #993BD1 #B36CDD

Accessibility & contrast

On white

7.91
#7827A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7827A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7827A8#FFFFFF#000000##FFFFFF
##7827A81.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAC
Deuteranopia (green-blind)
#0052A5
Tritanopia (blue-blind)
#714666
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7827a8;
/* rgb */ color: rgb(120, 39, 168);
/* oklch */ color: oklch(46.1% 0.196 309.1);
Tailwind
colors: {
  custom: {
    50: '#a46ac3',
    500: '#7827a8',
    950: '#000000',
  },
}
SCSS
$custom: #7827a8;
$custom-light: #a46ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#7827a8",
  "rgb": {
    "r": 120,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 277.674,
    "s": 62.319,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46069,
    "c": 0.19553,
    "h": 309.1
  },
  "luminance": 0.08271
}

Semantic roles & 50–950 ramp

primary
#7827A8
secondary
#8AC367
accent
#E5427F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7827A8

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

Preview Lab → · Contrast checker → · Palette generator →

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