#7C28BD#7C28BD

#7C28BD is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.3% C 0.216 H 304.9°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#7C28BD
RGBrgb(124, 40, 189)
HSLhsl(274, 65%, 45%)
HSVhsv(274, 79%, 74%)
CMYKcmyk(34.4%, 78.8%, 0%, 25.9%)
CIE-LABlab(36.89, 60.52, -62.08)
CIE-LCHlch(36.89, 86.70, 314.27°)
OKLaboklab(48.35% 0.1232 -0.1769)
OKLCHoklch(48.35% 0.216 304.9)
XYZxyz(18.2542, 9.4769, 49.0018)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C28BD #69BD28
analogous
#3228BD #7C28BD #BD28B3
triadic
#7C28BD #BD7C28 #28BD7C
tetradic
#7C28BD #BD3228 #69BD28 #28B3BD
square
#7C28BD #BD3228 #69BD28 #28B3BD
split-complementary
#7C28BD #B3BD28 #28BD32
monochromatic
#3A1358 #5B1D8A #7C28BD #9A4AD9 #B67CE3

Accessibility & contrast

On white

7.25
#7C28BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#7C28BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C28BD
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C28BD#FFFFFF#000000##FFFFFF
##7C28BD1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#0057BA
Tritanopia (blue-blind)
#6F4F73
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7c28bd;
/* rgb */ color: rgb(124, 40, 189);
/* oklch */ color: oklch(48.3% 0.216 304.9);
Tailwind
colors: {
  custom: {
    50: '#a86cd2',
    500: '#7c28bd',
    950: '#000000',
  },
}
SCSS
$custom: #7c28bd;
$custom-light: #a86cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c28bd",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 189
  },
  "hsl": {
    "h": 273.826,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48346,
    "c": 0.21561,
    "h": 304.9
  },
  "luminance": 0.09477
}

Semantic roles & 50–950 ramp

primary
#7C28BD
secondary
#9BCB75
accent
#E84089
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100714
muted
#7F7A83

Preview Lab

Preview with #7C28BD

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

Preview Lab → · Contrast checker → · Palette generator →

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