#7B27A8#7B27A8

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

Color values

HEX#7B27A8
RGBrgb(123, 39, 168)
HSLhsl(279, 62%, 41%)
HSVhsv(279, 77%, 66%)
CMYKcmyk(26.8%, 76.8%, 0%, 34.1%)
CIE-LABlab(34.98, 56.10, -52.71)
CIE-LCHlch(34.98, 76.98, 316.78°)
OKLaboklab(46.47% 0.1275 -0.1494)
OKLCHoklch(46.47% 0.196 310.5)
XYZxyz(15.9604, 8.4895, 37.8361)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B27A8 #54A827
analogous
#3B27A8 #7B27A8 #A82794
triadic
#7B27A8 #A87B27 #27A87B
tetradic
#7B27A8 #A83B27 #54A827 #2794A8
square
#7B27A8 #A83B27 #54A827 #2794A8
split-complementary
#7B27A8 #94A827 #27A83B
monochromatic
#321045 #571B76 #7B27A8 #9D3BD1 #B66CDD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B27A8#FFFFFF#000000##FFFFFF
##7B27A81.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)
#004FAC
Deuteranopia (green-blind)
#0354A5
Tritanopia (blue-blind)
#754666
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b27a8;
/* rgb */ color: rgb(123, 39, 168);
/* oklch */ color: oklch(46.5% 0.196 310.5);
Tailwind
colors: {
  custom: {
    50: '#a66bc3',
    500: '#7b27a8',
    950: '#000000',
  },
}
SCSS
$custom: #7b27a8;
$custom-light: #a66bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b27a8",
  "rgb": {
    "r": 123,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 279.07,
    "s": 62.319,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4647,
    "c": 0.1964,
    "h": 310.5
  },
  "luminance": 0.08489
}

Semantic roles & 50–950 ramp

primary
#7B27A8
secondary
#87C367
accent
#E5427B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B27A8

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

Preview Lab → · Contrast checker → · Palette generator →

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