#7C28A8#7C28A8

#7C28A8 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.7% C 0.196 H 310.8°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#7C28A8
RGBrgb(124, 40, 168)
HSLhsl(279, 62%, 41%)
HSVhsv(279, 76%, 66%)
CMYKcmyk(26.2%, 76.2%, 0%, 34.1%)
CIE-LABlab(35.26, 55.91, -52.25)
CIE-LCHlch(35.26, 76.52, 316.94°)
OKLaboklab(46.7% 0.1279 -0.148)
OKLCHoklch(46.7% 0.196 310.8)
XYZxyz(16.1375, 8.6302, 37.8539)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C28A8 #54A828
analogous
#3C28A8 #7C28A8 #A82894
triadic
#7C28A8 #A87C28 #28A87C
tetradic
#7C28A8 #A83C28 #54A828 #2894A8
square
#7C28A8 #A83C28 #54A828 #2894A8
split-complementary
#7C28A8 #94A828 #28A83C
monochromatic
#331045 #581C77 #7C28A8 #9E3DD1 #B66EDC

Accessibility & contrast

On white

7.70
#7C28A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7C28A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C28A8
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C28A8#FFFFFF#000000##FFFFFF
##7C28A81.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAC
Deuteranopia (green-blind)
#0A54A5
Tritanopia (blue-blind)
#764667
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7c28a8;
/* rgb */ color: rgb(124, 40, 168);
/* oklch */ color: oklch(46.7% 0.196 310.8);
Tailwind
colors: {
  custom: {
    50: '#a66bc3',
    500: '#7c28a8',
    950: '#000000',
  },
}
SCSS
$custom: #7c28a8;
$custom-light: #a66bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c28a8",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 279.375,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46698,
    "c": 0.19564,
    "h": 310.8
  },
  "luminance": 0.0863
}

Semantic roles & 50–950 ramp

primary
#7C28A8
secondary
#88C369
accent
#E5437B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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