#7B27A3#7B27A3

#7B27A3 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.1% C 0.192 H 312.1°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#7B27A3
RGBrgb(123, 39, 163)
HSLhsl(281, 61%, 40%)
HSVhsv(281, 76%, 64%)
CMYKcmyk(24.5%, 76.1%, 0%, 36.1%)
CIE-LABlab(34.61, 55.03, -50.30)
CIE-LCHlch(34.61, 74.55, 317.57°)
OKLaboklab(46.09% 0.1284 -0.1423)
OKLCHoklch(46.09% 0.192 312.1)
XYZxyz(15.5035, 8.3068, 35.4299)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B27A3 #4FA327
analogous
#3D27A3 #7B27A3 #A3278D
triadic
#7B27A3 #A37B27 #27A37B
tetradic
#7B27A3 #A33D27 #4FA327 #278DA3
square
#7B27A3 #A33D27 #4FA327 #278DA3
split-complementary
#7B27A3 #8DA327 #27A33D
monochromatic
#300F40 #561B72 #7B27A3 #9E38CF #B669DB

Accessibility & contrast

On white

7.89
#7B27A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7B27A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B27A3
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B27A3#FFFFFF#000000##FFFFFF
##7B27A31.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b27a3;
/* rgb */ color: rgb(123, 39, 163);
/* oklch */ color: oklch(46.1% 0.192 312.1);
Tailwind
colors: {
  custom: {
    50: '#a66abf',
    500: '#7b27a3',
    950: '#000000',
  },
}
SCSS
$custom: #7b27a3;
$custom-light: #a66abf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b27a3",
  "rgb": {
    "r": 123,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 280.645,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46094,
    "c": 0.19168,
    "h": 312.1
  },
  "luminance": 0.08306
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B27A3

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

Preview Lab → · Contrast checker → · Palette generator →

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