#7A27A3#7A27A3

#7A27A3 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.0% C 0.191 H 311.6°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#7A27A3
RGBrgb(122, 39, 163)
HSLhsl(280, 61%, 40%)
HSVhsv(280, 76%, 64%)
CMYKcmyk(25.2%, 76.1%, 0%, 36.1%)
CIE-LABlab(34.46, 54.83, -50.55)
CIE-LCHlch(34.46, 74.58, 317.33°)
OKLaboklab(45.96% 0.1271 -0.1431)
OKLCHoklch(45.96% 0.191 311.6)
XYZxyz(15.3612, 8.2334, 35.4232)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A27A3 #50A327
analogous
#3C27A3 #7A27A3 #A3278E
triadic
#7A27A3 #A37A27 #27A37A
tetradic
#7A27A3 #A33C27 #50A327 #278EA3
square
#7A27A3 #A33C27 #50A327 #278EA3
split-complementary
#7A27A3 #8EA327 #27A33C
monochromatic
#300F40 #551B72 #7A27A3 #9D38CF #B569DB

Accessibility & contrast

On white

7.93
#7A27A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7A27A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A27A3
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A27A3#FFFFFF#000000##FFFFFF
##7A27A31.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA6
Deuteranopia (green-blind)
#1153A0
Tritanopia (blue-blind)
#754464
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a27a3;
/* rgb */ color: rgb(122, 39, 163);
/* oklch */ color: oklch(46.0% 0.191 311.6);
Tailwind
colors: {
  custom: {
    50: '#a56abf',
    500: '#7a27a3',
    950: '#000000',
  },
}
SCSS
$custom: #7a27a3;
$custom-light: #a56abf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a27a3",
  "rgb": {
    "r": 122,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 280.161,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45958,
    "c": 0.19136,
    "h": 311.6
  },
  "luminance": 0.08233
}

Semantic roles & 50–950 ramp

primary
#7A27A3
secondary
#83C164
accent
#E44379
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A27A3

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

Preview Lab → · Contrast checker → · Palette generator →

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