#7A27A2#7A27A2

#7A27A2 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.9% C 0.190 H 311.9°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#7A27A2
RGBrgb(122, 39, 162)
HSLhsl(280, 61%, 39%)
HSVhsv(280, 76%, 64%)
CMYKcmyk(24.7%, 75.9%, 0%, 36.5%)
CIE-LABlab(34.39, 54.62, -50.06)
CIE-LCHlch(34.39, 74.09, 317.49°)
OKLaboklab(45.88% 0.1273 -0.1417)
OKLCHoklch(45.88% 0.19 311.9)
XYZxyz(15.2719, 8.1977, 34.9532)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A27A2 #4FA227
analogous
#3D27A2 #7A27A2 #A2278D
triadic
#7A27A2 #A27A27 #27A27A
tetradic
#7A27A2 #A23D27 #4FA227 #278DA2
square
#7A27A2 #A23D27 #4FA227 #278DA2
split-complementary
#7A27A2 #8DA227 #27A23D
monochromatic
#300F3F #551B71 #7A27A2 #9E37CF #B669DB

Accessibility & contrast

On white

7.96
#7A27A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7A27A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A27A2
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A27A2#FFFFFF#000000##FFFFFF
##7A27A21.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#13529F
Tritanopia (blue-blind)
#754363
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a27a2;
/* rgb */ color: rgb(122, 39, 162);
/* oklch */ color: oklch(45.9% 0.190 311.9);
Tailwind
colors: {
  custom: {
    50: '#a56abe',
    500: '#7a27a2',
    950: '#000000',
  },
}
SCSS
$custom: #7a27a2;
$custom-light: #a56abe;
$custom-dark: #000000;
JSON
{
  "hex": "#7a27a2",
  "rgb": {
    "r": 122,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 280.488,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.45884,
    "c": 0.19042,
    "h": 311.9
  },
  "luminance": 0.08197
}

Semantic roles & 50–950 ramp

primary
#7A27A2
secondary
#82C164
accent
#E44378
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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