#7B28AA#7B28AA

#7B28AA is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.7% C 0.197 H 309.8°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#7B28AA
RGBrgb(123, 40, 170)
HSLhsl(278, 62%, 41%)
HSVhsv(278, 76%, 67%)
CMYKcmyk(27.6%, 76.5%, 0%, 33.3%)
CIE-LABlab(35.26, 56.15, -53.45)
CIE-LCHlch(35.26, 77.52, 316.41°)
OKLaboklab(46.72% 0.1262 -0.1516)
OKLCHoklch(46.72% 0.197 309.8)
XYZxyz(16.1814, 8.6312, 38.8360)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B28AA #57AA28
analogous
#3A28AA #7B28AA #AA2898
triadic
#7B28AA #AA7B28 #28AA7B
tetradic
#7B28AA #AA3A28 #57AA28 #2898AA
square
#7B28AA #AA3A28 #57AA28 #2898AA
split-complementary
#7B28AA #98AA28 #28AA3A
monochromatic
#331147 #571C78 #7B28AA #9C3ED2 #B56FDD

Accessibility & contrast

On white

7.70
#7B28AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7B28AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B28AA
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B28AA#FFFFFF#000000##FFFFFF
##7B28AA1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#0054A7
Tritanopia (blue-blind)
#744768
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b28aa;
/* rgb */ color: rgb(123, 40, 170);
/* oklch */ color: oklch(46.7% 0.197 309.8);
Tailwind
colors: {
  custom: {
    50: '#a66bc4',
    500: '#7b28aa',
    950: '#000000',
  },
}
SCSS
$custom: #7b28aa;
$custom-light: #a66bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b28aa",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 278.308,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46716,
    "c": 0.19724,
    "h": 309.8
  },
  "luminance": 0.08631
}

Semantic roles & 50–950 ramp

primary
#7B28AA
secondary
#8AC46A
accent
#E5437D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B28AA

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

Preview Lab → · Contrast checker → · Palette generator →

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