#7C28B7#7C28B7

#7C28B7 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.9% C 0.210 H 306.5°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#7C28B7
RGBrgb(124, 40, 183)
HSLhsl(275, 64%, 44%)
HSVhsv(275, 78%, 72%)
CMYKcmyk(32.2%, 78.1%, 0%, 28.2%)
CIE-LABlab(36.41, 59.18, -59.32)
CIE-LCHlch(36.41, 83.79, 314.93°)
OKLaboklab(47.86% 0.1247 -0.1688)
OKLCHoklch(47.86% 0.21 306.5)
XYZxyz(17.6163, 9.2218, 45.6425)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C28B7 #63B728
analogous
#3428B7 #7C28B7 #B728AA
triadic
#7C28B7 #B77C28 #28B77C
tetradic
#7C28B7 #B73428 #63B728 #28AAB7
square
#7C28B7 #B73428 #63B728 #28AAB7
split-complementary
#7C28B7 #AAB728 #28B734
monochromatic
#381253 #5A1D85 #7C28B7 #9B46D6 #B678E1

Accessibility & contrast

On white

7.38
#7C28B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7C28B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C28B7
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C28B7#FFFFFF#000000##FFFFFF
##7C28B71.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BB
Deuteranopia (green-blind)
#0056B4
Tritanopia (blue-blind)
#724D6F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7c28b7;
/* rgb */ color: rgb(124, 40, 183);
/* oklch */ color: oklch(47.9% 0.210 306.5);
Tailwind
colors: {
  custom: {
    50: '#a86cce',
    500: '#7c28b7',
    950: '#000000',
  },
}
SCSS
$custom: #7c28b7;
$custom-light: #a86cce;
$custom-dark: #000000;
JSON
{
  "hex": "#7c28b7",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 183
  },
  "hsl": {
    "h": 275.245,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47862,
    "c": 0.2099,
    "h": 306.5
  },
  "luminance": 0.09222
}

Semantic roles & 50–950 ramp

primary
#7C28B7
secondary
#96C972
accent
#E74185
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7C28B7

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

Preview Lab → · Contrast checker → · Palette generator →

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