#7C28B9#7C28B9

#7C28B9 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.0% C 0.212 H 305.9°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#7C28B9
RGBrgb(124, 40, 185)
HSLhsl(275, 64%, 44%)
HSVhsv(275, 78%, 73%)
CMYKcmyk(33%, 78.4%, 0%, 27.5%)
CIE-LABlab(36.57, 59.63, -60.25)
CIE-LCHlch(36.57, 84.76, 314.70°)
OKLaboklab(48.02% 0.1243 -0.1715)
OKLCHoklch(48.02% 0.212 305.9)
XYZxyz(17.8260, 9.3056, 46.7466)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C28B9 #65B928
analogous
#3428B9 #7C28B9 #B928AE
triadic
#7C28B9 #B97C28 #28B97C
tetradic
#7C28B9 #B93428 #65B928 #28AEB9
square
#7C28B9 #B93428 #65B928 #28AEB9
split-complementary
#7C28B9 #AEB928 #28B934
monochromatic
#391254 #5A1D87 #7C28B9 #9B47D7 #B679E2

Accessibility & contrast

On white

7.34
#7C28B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7C28B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C28B9
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C28B9#FFFFFF#000000##FFFFFF
##7C28B91.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BD
Deuteranopia (green-blind)
#0056B6
Tritanopia (blue-blind)
#714E70
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7c28b9;
/* rgb */ color: rgb(124, 40, 185);
/* oklch */ color: oklch(48.0% 0.212 305.9);
Tailwind
colors: {
  custom: {
    50: '#a86ccf',
    500: '#7c28b9',
    950: '#000000',
  },
}
SCSS
$custom: #7c28b9;
$custom-light: #a86ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c28b9",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 185
  },
  "hsl": {
    "h": 274.759,
    "s": 64.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48023,
    "c": 0.2118,
    "h": 305.9
  },
  "luminance": 0.09305
}

Semantic roles & 50–950 ramp

primary
#7C28B9
secondary
#97CA73
accent
#E74087
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7C28B9

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

Preview Lab → · Contrast checker → · Palette generator →

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