#7B28A8#7B28A8

#7B28A8 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.6% C 0.195 H 310.4°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#7B28A8
RGBrgb(123, 40, 168)
HSLhsl(279, 62%, 41%)
HSVhsv(279, 76%, 66%)
CMYKcmyk(26.8%, 76.2%, 0%, 34.1%)
CIE-LABlab(35.12, 55.72, -52.49)
CIE-LCHlch(35.12, 76.55, 316.71°)
OKLaboklab(46.56% 0.1266 -0.1488)
OKLCHoklch(46.56% 0.195 310.4)
XYZxyz(15.9937, 8.5561, 37.8472)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B28A8 #55A828
analogous
#3B28A8 #7B28A8 #A82895
triadic
#7B28A8 #A87B28 #28A87B
tetradic
#7B28A8 #A83B28 #55A828 #2895A8
square
#7B28A8 #A83B28 #55A828 #2895A8
split-complementary
#7B28A8 #95A828 #28A83B
monochromatic
#331045 #571C77 #7B28A8 #9D3DD1 #B66EDC

Accessibility & contrast

On white

7.75
#7B28A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7B28A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B28A8
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B28A8#FFFFFF#000000##FFFFFF
##7B28A81.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAC
Deuteranopia (green-blind)
#0654A5
Tritanopia (blue-blind)
#754667
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b28a8;
/* rgb */ color: rgb(123, 40, 168);
/* oklch */ color: oklch(46.6% 0.195 310.4);
Tailwind
colors: {
  custom: {
    50: '#a66bc3',
    500: '#7b28a8',
    950: '#000000',
  },
}
SCSS
$custom: #7b28a8;
$custom-light: #a66bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b28a8",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 278.906,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46564,
    "c": 0.19534,
    "h": 310.4
  },
  "luminance": 0.08556
}

Semantic roles & 50–950 ramp

primary
#7B28A8
secondary
#88C369
accent
#E5437C
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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