#7C28C5#7C28C5

#7C28C5 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 49.0% C 0.223 H 302.8°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#7C28C5
RGBrgb(124, 40, 197)
HSLhsl(272, 66%, 46%)
HSVhsv(272, 80%, 77%)
CMYKcmyk(37.1%, 79.7%, 0%, 22.7%)
CIE-LABlab(37.54, 62.32, -65.70)
CIE-LCHlch(37.54, 90.56, 313.48°)
OKLaboklab(49.01% 0.1211 -0.1875)
OKLCHoklch(49.01% 0.223 302.8)
XYZxyz(19.1466, 9.8339, 53.7019)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C28C5 #71C528
analogous
#2E28C5 #7C28C5 #C528C0
triadic
#7C28C5 #C57C28 #28C57C
tetradic
#7C28C5 #C52E28 #71C528 #28C0C5
square
#7C28C5 #C52E28 #71C528 #28C0C5
split-complementary
#7C28C5 #C0C528 #28C52E
monochromatic
#3C135F #5C1E92 #7C28C5 #9A4FDB #B782E6

Accessibility & contrast

On white

7.08
#7C28C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7C28C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C28C5
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C28C5#FFFFFF#000000##FFFFFF
##7C28C51.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C9
Deuteranopia (green-blind)
#0058C2
Tritanopia (blue-blind)
#6D5377
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7c28c5;
/* rgb */ color: rgb(124, 40, 197);
/* oklch */ color: oklch(49.0% 0.223 302.8);
Tailwind
colors: {
  custom: {
    50: '#a96dd8',
    500: '#7c28c5',
    950: '#000000',
  },
}
SCSS
$custom: #7c28c5;
$custom-light: #a96dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7c28c5",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 197
  },
  "hsl": {
    "h": 272.102,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.49007,
    "c": 0.22323,
    "h": 302.8
  },
  "luminance": 0.09834
}

Semantic roles & 50–950 ramp

primary
#7C28C5
secondary
#A1CE7A
accent
#E93F8E
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110815
muted
#807A83

Preview Lab

Preview with #7C28C5

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

Preview Lab → · Contrast checker → · Palette generator →

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