#7C28AA#7C28AA

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

Color values

HEX#7C28AA
RGBrgb(124, 40, 170)
HSLhsl(279, 62%, 41%)
HSVhsv(279, 76%, 67%)
CMYKcmyk(27.1%, 76.5%, 0%, 33.3%)
CIE-LABlab(35.41, 56.34, -53.21)
CIE-LCHlch(35.41, 77.49, 316.64°)
OKLaboklab(46.85% 0.1276 -0.1508)
OKLCHoklch(46.85% 0.198 310.2)
XYZxyz(16.3252, 8.7053, 38.8427)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C28AA #56AA28
analogous
#3B28AA #7C28AA #AA2897
triadic
#7C28AA #AA7C28 #28AA7C
tetradic
#7C28AA #AA3B28 #56AA28 #2897AA
square
#7C28AA #AA3B28 #56AA28 #2897AA
split-complementary
#7C28AA #97AA28 #28AA3B
monochromatic
#341147 #581C78 #7C28AA #9D3ED2 #B66FDD

Accessibility & contrast

On white

7.66
#7C28AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7C28AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C28AA
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C28AA#FFFFFF#000000##FFFFFF
##7C28AA1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#0255A7
Tritanopia (blue-blind)
#764768
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7c28aa;
/* rgb */ color: rgb(124, 40, 170);
/* oklch */ color: oklch(46.9% 0.198 310.2);
Tailwind
colors: {
  custom: {
    50: '#a76bc4',
    500: '#7c28aa',
    950: '#000000',
  },
}
SCSS
$custom: #7c28aa;
$custom-light: #a76bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c28aa",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 278.769,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4685,
    "c": 0.19754,
    "h": 310.2
  },
  "luminance": 0.08705
}

Semantic roles & 50–950 ramp

primary
#7C28AA
secondary
#8AC46A
accent
#E5437C
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C28AA

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

Preview Lab → · Contrast checker → · Palette generator →

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