#7A27AA#7A27AA

#7A27AA is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.5% C 0.198 H 309.4°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#7A27AA
RGBrgb(122, 39, 170)
HSLhsl(278, 63%, 41%)
HSVhsv(278, 77%, 67%)
CMYKcmyk(28.2%, 77.1%, 0%, 33.3%)
CIE-LABlab(34.99, 56.34, -53.91)
CIE-LCHlch(34.99, 77.98, 316.27°)
OKLaboklab(46.49% 0.1257 -0.153)
OKLCHoklch(46.49% 0.198 309.4)
XYZxyz(16.0058, 8.4912, 38.8182)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A27AA #57AA27
analogous
#3827AA #7A27AA #AA2798
triadic
#7A27AA #AA7A27 #27AA7A
tetradic
#7A27AA #AA3827 #57AA27 #2798AA
square
#7A27AA #AA3827 #57AA27 #2798AA
split-complementary
#7A27AA #98AA27 #27AA38
monochromatic
#331046 #561C78 #7A27AA #9B3CD2 #B56EDE

Accessibility & contrast

On white

7.78
#7A27AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7A27AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A27AA
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A27AA#FFFFFF#000000##FFFFFF
##7A27AA1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a27aa;
/* rgb */ color: rgb(122, 39, 170);
/* oklch */ color: oklch(46.5% 0.198 309.4);
Tailwind
colors: {
  custom: {
    50: '#a56bc4',
    500: '#7a27aa',
    950: '#000000',
  },
}
SCSS
$custom: #7a27aa;
$custom-light: #a56bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a27aa",
  "rgb": {
    "r": 122,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 278.015,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.4649,
    "c": 0.19801,
    "h": 309.4
  },
  "luminance": 0.08491
}

Semantic roles & 50–950 ramp

primary
#7A27AA
secondary
#8AC469
accent
#E6427E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A27AA

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

Preview Lab → · Contrast checker → · Palette generator →

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