#7827AB#7827AB

#7827AB is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.3% C 0.198 H 308.2°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#7827AB
RGBrgb(120, 39, 171)
HSLhsl(277, 63%, 41%)
HSVhsv(277, 77%, 67%)
CMYKcmyk(29.8%, 77.2%, 0%, 32.9%)
CIE-LABlab(34.77, 56.20, -54.87)
CIE-LCHlch(34.77, 78.54, 315.69°)
OKLaboklab(46.3% 0.1228 -0.1558)
OKLCHoklch(46.3% 0.198 308.2)
XYZxyz(15.8204, 8.3846, 39.3052)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7827AB #5AAB27
analogous
#3627AB #7827AB #AB279C
triadic
#7827AB #AB7827 #27AB78
tetradic
#7827AB #AB3627 #5AAB27 #279CAB
square
#7827AB #AB3627 #5AAB27 #279CAB
split-complementary
#7827AB #9CAB27 #27AB36
monochromatic
#321047 #551C79 #7827AB #993DD3 #B36EDE

Accessibility & contrast

On white

7.85
#7827AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7827AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7827AB#FFFFFF#000000##FFFFFF
##7827AB1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#0053A8
Tritanopia (blue-blind)
#704868
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7827ab;
/* rgb */ color: rgb(120, 39, 171);
/* oklch */ color: oklch(46.3% 0.198 308.2);
Tailwind
colors: {
  custom: {
    50: '#a46ac5',
    500: '#7827ab',
    950: '#000000',
  },
}
SCSS
$custom: #7827ab;
$custom-light: #a46ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#7827ab",
  "rgb": {
    "r": 120,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 276.818,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46303,
    "c": 0.19841,
    "h": 308.2
  },
  "luminance": 0.08384
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7827AB

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

Preview Lab → · Contrast checker → · Palette generator →

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