#7B28AC#7B28AC

#7B28AC is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.9% C 0.199 H 309.2°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#7B28AC
RGBrgb(123, 40, 172)
HSLhsl(278, 62%, 42%)
HSVhsv(278, 77%, 67%)
CMYKcmyk(28.5%, 76.7%, 0%, 32.5%)
CIE-LABlab(35.41, 56.59, -54.40)
CIE-LCHlch(35.41, 78.50, 316.13°)
OKLaboklab(46.87% 0.1258 -0.1544)
OKLCHoklch(46.87% 0.199 309.2)
XYZxyz(16.3721, 8.7074, 39.8400)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B28AC #59AC28
analogous
#3928AC #7B28AC #AC289B
triadic
#7B28AC #AC7B28 #28AC7B
tetradic
#7B28AC #AC3928 #59AC28 #289BAC
square
#7B28AC #AC3928 #59AC28 #289BAC
split-complementary
#7B28AC #9BAC28 #28AC39
monochromatic
#341149 #571C7A #7B28AC #9C3FD2 #B571DE

Accessibility & contrast

On white

7.66
#7B28AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7B28AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B28AC
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B28AC#FFFFFF#000000##FFFFFF
##7B28AC1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B0
Deuteranopia (green-blind)
#0054A9
Tritanopia (blue-blind)
#744869
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b28ac;
/* rgb */ color: rgb(123, 40, 172);
/* oklch */ color: oklch(46.9% 0.199 309.2);
Tailwind
colors: {
  custom: {
    50: '#a66bc6',
    500: '#7b28ac',
    950: '#000000',
  },
}
SCSS
$custom: #7b28ac;
$custom-light: #a66bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b28ac",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 277.727,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46869,
    "c": 0.19915,
    "h": 309.2
  },
  "luminance": 0.08707
}

Semantic roles & 50–950 ramp

primary
#7B28AC
secondary
#8CC56B
accent
#E5427F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B28AC

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

Preview Lab → · Contrast checker → · Palette generator →

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