#7C28AE#7C28AE

#7C28AE is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.2% C 0.201 H 309.0°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#7C28AE
RGBrgb(124, 40, 174)
HSLhsl(278, 63%, 42%)
HSVhsv(278, 77%, 68%)
CMYKcmyk(28.7%, 77%, 0%, 31.8%)
CIE-LABlab(35.71, 57.20, -55.11)
CIE-LCHlch(35.71, 79.43, 316.07°)
OKLaboklab(47.16% 0.1268 -0.1564)
OKLCHoklch(47.16% 0.201 309)
XYZxyz(16.7094, 8.8590, 40.8659)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C28AE #5AAE28
analogous
#3928AE #7C28AE #AE289D
triadic
#7C28AE #AE7C28 #28AE7C
tetradic
#7C28AE #AE3928 #5AAE28 #289DAE
square
#7C28AE #AE3928 #5AAE28 #289DAE
split-complementary
#7C28AE #9DAE28 #28AE39
monochromatic
#35114A #591D7C #7C28AE #9C40D3 #B672DF

Accessibility & contrast

On white

7.58
#7C28AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7C28AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C28AE
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C28AE#FFFFFF#000000##FFFFFF
##7C28AE1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c28ae;
/* rgb */ color: rgb(124, 40, 174);
/* oklch */ color: oklch(47.2% 0.201 309.0);
Tailwind
colors: {
  custom: {
    50: '#a76bc7',
    500: '#7c28ae',
    950: '#000000',
  },
}
SCSS
$custom: #7c28ae;
$custom-light: #a76bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7c28ae",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 277.612,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47156,
    "c": 0.20133,
    "h": 309
  },
  "luminance": 0.08859
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C28AE

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

Preview Lab → · Contrast checker → · Palette generator →

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