#7A27AB#7A27AB

#7A27AB is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.6% C 0.199 H 309.1°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#7A27AB
RGBrgb(122, 39, 171)
HSLhsl(278, 63%, 41%)
HSVhsv(278, 77%, 67%)
CMYKcmyk(28.7%, 77.2%, 0%, 32.9%)
CIE-LABlab(35.06, 56.56, -54.38)
CIE-LCHlch(35.06, 78.47, 316.12°)
OKLaboklab(46.57% 0.1255 -0.1544)
OKLCHoklch(46.57% 0.199 309.1)
XYZxyz(16.1007, 8.5292, 39.3183)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A27AB #58AB27
analogous
#3827AB #7A27AB #AB279A
triadic
#7A27AB #AB7A27 #27AB7A
tetradic
#7A27AB #AB3827 #58AB27 #279AAB
square
#7A27AB #AB3827 #58AB27 #279AAB
split-complementary
#7A27AB #9AAB27 #27AB38
monochromatic
#331047 #561C79 #7A27AB #9B3DD3 #B56EDE

Accessibility & contrast

On white

7.76
#7A27AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7A27AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A27AB
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A27AB#FFFFFF#000000##FFFFFF
##7A27AB1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a27ab;
/* rgb */ color: rgb(122, 39, 171);
/* oklch */ color: oklch(46.6% 0.199 309.1);
Tailwind
colors: {
  custom: {
    50: '#a56bc5',
    500: '#7a27ab',
    950: '#000000',
  },
}
SCSS
$custom: #7a27ab;
$custom-light: #a56bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a27ab",
  "rgb": {
    "r": 122,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 277.727,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46567,
    "c": 0.19896,
    "h": 309.1
  },
  "luminance": 0.08529
}

Semantic roles & 50–950 ramp

primary
#7A27AB
secondary
#8BC569
accent
#E6427F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A27AB

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

Preview Lab → · Contrast checker → · Palette generator →

#7A27AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva