#7B28AE#7B28AE

#7B28AE is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.0% C 0.201 H 308.6°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#7B28AE
RGBrgb(123, 40, 174)
HSLhsl(277, 63%, 42%)
HSVhsv(277, 77%, 68%)
CMYKcmyk(29.3%, 77%, 0%, 31.8%)
CIE-LABlab(35.57, 57.02, -55.35)
CIE-LCHlch(35.57, 79.47, 315.85°)
OKLaboklab(47.02% 0.1254 -0.1572)
OKLCHoklch(47.02% 0.201 308.6)
XYZxyz(16.5656, 8.7848, 40.8592)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B28AE #5BAE28
analogous
#3828AE #7B28AE #AE289E
triadic
#7B28AE #AE7B28 #28AE7B
tetradic
#7B28AE #AE3828 #5BAE28 #289EAE
square
#7B28AE #AE3828 #5BAE28 #289EAE
split-complementary
#7B28AE #9EAE28 #28AE38
monochromatic
#35114A #581D7C #7B28AE #9B40D3 #B572DF

Accessibility & contrast

On white

7.62
#7B28AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7B28AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B28AE
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B28AE#FFFFFF#000000##FFFFFF
##7B28AE1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B2
Deuteranopia (green-blind)
#0055AB
Tritanopia (blue-blind)
#73496A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b28ae;
/* rgb */ color: rgb(123, 40, 174);
/* oklch */ color: oklch(47.0% 0.201 308.6);
Tailwind
colors: {
  custom: {
    50: '#a66bc7',
    500: '#7b28ae',
    950: '#000000',
  },
}
SCSS
$custom: #7b28ae;
$custom-light: #a66bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b28ae",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 277.164,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47024,
    "c": 0.20106,
    "h": 308.6
  },
  "luminance": 0.08785
}

Semantic roles & 50–950 ramp

primary
#7B28AE
secondary
#8EC66C
accent
#E64280
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B28AE

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

Preview Lab → · Contrast checker → · Palette generator →

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