#7C28AB#7C28AB

#7C28AB is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.9% C 0.198 H 309.9°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#7C28AB
RGBrgb(124, 40, 171)
HSLhsl(278, 62%, 41%)
HSVhsv(278, 77%, 67%)
CMYKcmyk(27.5%, 76.6%, 0%, 32.9%)
CIE-LABlab(35.49, 56.55, -53.68)
CIE-LCHlch(35.49, 77.98, 316.49°)
OKLaboklab(46.93% 0.1274 -0.1522)
OKLCHoklch(46.93% 0.198 309.9)
XYZxyz(16.4202, 8.7433, 39.3428)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C28AB #57AB28
analogous
#3B28AB #7C28AB #AB2899
triadic
#7C28AB #AB7C28 #28AB7C
tetradic
#7C28AB #AB3B28 #57AB28 #2899AB
square
#7C28AB #AB3B28 #57AB28 #2899AB
split-complementary
#7C28AB #99AB28 #28AB3B
monochromatic
#341148 #581C79 #7C28AB #9D3ED2 #B670DE

Accessibility & contrast

On white

7.64
#7C28AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7C28AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C28AB
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C28AB#FFFFFF#000000##FFFFFF
##7C28AB1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0055A8
Tritanopia (blue-blind)
#754868
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7c28ab;
/* rgb */ color: rgb(124, 40, 171);
/* oklch */ color: oklch(46.9% 0.198 309.9);
Tailwind
colors: {
  custom: {
    50: '#a76bc5',
    500: '#7c28ab',
    950: '#000000',
  },
}
SCSS
$custom: #7c28ab;
$custom-light: #a76bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c28ab",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 278.473,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46926,
    "c": 0.19849,
    "h": 309.9
  },
  "luminance": 0.08743
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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