#7C28BB#7C28BB

#7C28BB is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.2% C 0.214 H 305.4°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#7C28BB
RGBrgb(124, 40, 187)
HSLhsl(274, 65%, 45%)
HSVhsv(274, 79%, 73%)
CMYKcmyk(33.7%, 78.6%, 0%, 26.7%)
CIE-LABlab(36.73, 60.07, -61.17)
CIE-LCHlch(36.73, 85.73, 314.48°)
OKLaboklab(48.18% 0.1238 -0.1742)
OKLCHoklch(48.18% 0.214 305.4)
XYZxyz(18.0386, 9.3907, 47.8663)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C28BB #67BB28
analogous
#3328BB #7C28BB #BB28B1
triadic
#7C28BB #BB7C28 #28BB7C
tetradic
#7C28BB #BB3328 #67BB28 #28B1BB
square
#7C28BB #BB3328 #67BB28 #28B1BB
split-complementary
#7C28BB #B1BB28 #28BB33
monochromatic
#391256 #5B1D89 #7C28BB #9A48D8 #B67BE3

Accessibility & contrast

On white

7.30
#7C28BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7C28BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C28BB
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C28BB#FFFFFF#000000##FFFFFF
##7C28BB1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BF
Deuteranopia (green-blind)
#0057B8
Tritanopia (blue-blind)
#704F71
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7c28bb;
/* rgb */ color: rgb(124, 40, 187);
/* oklch */ color: oklch(48.2% 0.214 305.4);
Tailwind
colors: {
  custom: {
    50: '#a86cd0',
    500: '#7c28bb',
    950: '#000000',
  },
}
SCSS
$custom: #7c28bb;
$custom-light: #a86cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c28bb",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 187
  },
  "hsl": {
    "h": 274.286,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48184,
    "c": 0.21371,
    "h": 305.4
  },
  "luminance": 0.09391
}

Semantic roles & 50–950 ramp

primary
#7C28BB
secondary
#99CB74
accent
#E84088
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7C28BB

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

Preview Lab → · Contrast checker → · Palette generator →

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