#7B28A2#7B28A2

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

Color values

HEX#7B28A2
RGBrgb(123, 40, 162)
HSLhsl(281, 60%, 40%)
HSVhsv(281, 75%, 64%)
CMYKcmyk(24.1%, 75.3%, 0%, 36.5%)
CIE-LABlab(34.68, 54.43, -49.59)
CIE-LCHlch(34.68, 73.64, 317.66°)
OKLaboklab(46.12% 0.1276 -0.1403)
OKLCHoklch(46.12% 0.19 312.3)
XYZxyz(15.4476, 8.3376, 34.9710)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B28A2 #4FA228
analogous
#3E28A2 #7B28A2 #A2288C
triadic
#7B28A2 #A27B28 #28A27B
tetradic
#7B28A2 #A23E28 #4FA228 #288CA2
square
#7B28A2 #A23E28 #4FA228 #288CA2
split-complementary
#7B28A2 #8CA228 #28A23E
monochromatic
#301040 #561C71 #7B28A2 #9E39CE #B66ADA

Accessibility & contrast

On white

7.87
#7B28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7B28A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B28A2
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B28A2#FFFFFF#000000##FFFFFF
##7B28A21.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#17539F
Tritanopia (blue-blind)
#764463
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b28a2;
/* rgb */ color: rgb(123, 40, 162);
/* oklch */ color: oklch(46.1% 0.190 312.3);
Tailwind
colors: {
  custom: {
    50: '#a56bbe',
    500: '#7b28a2',
    950: '#000000',
  },
}
SCSS
$custom: #7b28a2;
$custom-light: #a56bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7b28a2",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 280.82,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46116,
    "c": 0.18964,
    "h": 312.3
  },
  "luminance": 0.08337
}

Semantic roles & 50–950 ramp

primary
#7B28A2
secondary
#82C165
accent
#E44477
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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