#7B27A2#7B27A2

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

Color values

HEX#7B27A2
RGBrgb(123, 39, 162)
HSLhsl(281, 61%, 39%)
HSVhsv(281, 76%, 64%)
CMYKcmyk(24.1%, 75.9%, 0%, 36.5%)
CIE-LABlab(34.54, 54.82, -49.81)
CIE-LCHlch(34.54, 74.07, 317.74°)
OKLaboklab(46.02% 0.1286 -0.1409)
OKLCHoklch(46.02% 0.191 312.4)
XYZxyz(15.4143, 8.2711, 34.9599)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B27A2 #4EA227
analogous
#3E27A2 #7B27A2 #A2278C
triadic
#7B27A2 #A27B27 #27A27B
tetradic
#7B27A2 #A23E27 #4EA227 #278CA2
square
#7B27A2 #A23E27 #4EA227 #278CA2
split-complementary
#7B27A2 #8CA227 #27A23E
monochromatic
#300F3F #561B71 #7B27A2 #9F37CF #B769DB

Accessibility & contrast

On white

7.91
#7B27A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B27A2
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B27A2#FFFFFF#000000##FFFFFF
##7B27A21.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b27a2;
/* rgb */ color: rgb(123, 39, 162);
/* oklch */ color: oklch(46.0% 0.191 312.4);
Tailwind
colors: {
  custom: {
    50: '#a56abe',
    500: '#7b27a2',
    950: '#000000',
  },
}
SCSS
$custom: #7b27a2;
$custom-light: #a56abe;
$custom-dark: #000000;
JSON
{
  "hex": "#7b27a2",
  "rgb": {
    "r": 123,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 280.976,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4602,
    "c": 0.19074,
    "h": 312.4
  },
  "luminance": 0.08271
}

Semantic roles & 50–950 ramp

primary
#7B27A2
secondary
#81C164
accent
#E44376
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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