#7C28A2#7C28A2

#7C28A2 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.3% C 0.190 H 312.8°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#7C28A2
RGBrgb(124, 40, 162)
HSLhsl(281, 60%, 40%)
HSVhsv(281, 75%, 64%)
CMYKcmyk(23.5%, 75.3%, 0%, 36.5%)
CIE-LABlab(34.83, 54.63, -49.34)
CIE-LCHlch(34.83, 73.61, 317.91°)
OKLaboklab(46.25% 0.129 -0.1395)
OKLCHoklch(46.25% 0.19 312.8)
XYZxyz(15.5914, 8.4118, 34.9777)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C28A2 #4EA228
analogous
#3F28A2 #7C28A2 #A2288B
triadic
#7C28A2 #A27C28 #28A27C
tetradic
#7C28A2 #A23F28 #4EA228 #288BA2
square
#7C28A2 #A23F28 #4EA228 #288BA2
split-complementary
#7C28A2 #8BA228 #28A23F
monochromatic
#311040 #561C71 #7C28A2 #A039CE #B76ADA

Accessibility & contrast

On white

7.83
#7C28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7C28A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C28A2
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C28A2#FFFFFF#000000##FFFFFF
##7C28A21.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c28a2;
/* rgb */ color: rgb(124, 40, 162);
/* oklch */ color: oklch(46.3% 0.190 312.8);
Tailwind
colors: {
  custom: {
    50: '#a66bbe',
    500: '#7c28a2',
    950: '#000000',
  },
}
SCSS
$custom: #7c28a2;
$custom-light: #a66bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7c28a2",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 281.311,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46252,
    "c": 0.18996,
    "h": 312.8
  },
  "luminance": 0.08411
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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