#7C28BA#7C28BA

#7C28BA is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.1% C 0.213 H 305.7°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#7C28BA
RGBrgb(124, 40, 186)
HSLhsl(275, 65%, 44%)
HSVhsv(275, 78%, 73%)
CMYKcmyk(33.3%, 78.5%, 0%, 27.1%)
CIE-LABlab(36.65, 59.85, -60.71)
CIE-LCHlch(36.65, 85.25, 314.59°)
OKLaboklab(48.1% 0.124 -0.1729)
OKLCHoklch(48.1% 0.213 305.7)
XYZxyz(17.9319, 9.3480, 47.3045)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C28BA #66BA28
analogous
#3328BA #7C28BA #BA28AF
triadic
#7C28BA #BA7C28 #28BA7C
tetradic
#7C28BA #BA3328 #66BA28 #28AFBA
square
#7C28BA #BA3328 #66BA28 #28AFBA
split-complementary
#7C28BA #AFBA28 #28BA33
monochromatic
#391255 #5A1D88 #7C28BA #9A48D8 #B67AE2

Accessibility & contrast

On white

7.32
#7C28BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7C28BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C28BA
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C28BA#FFFFFF#000000##FFFFFF
##7C28BA1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BE
Deuteranopia (green-blind)
#0056B7
Tritanopia (blue-blind)
#714E71
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7c28ba;
/* rgb */ color: rgb(124, 40, 186);
/* oklch */ color: oklch(48.1% 0.213 305.7);
Tailwind
colors: {
  custom: {
    50: '#a86cd0',
    500: '#7c28ba',
    950: '#000000',
  },
}
SCSS
$custom: #7c28ba;
$custom-light: #a86cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c28ba",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 186
  },
  "hsl": {
    "h": 274.521,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48103,
    "c": 0.21275,
    "h": 305.7
  },
  "luminance": 0.09348
}

Semantic roles & 50–950 ramp

primary
#7C28BA
secondary
#98CA73
accent
#E84087
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7C28BA

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

Preview Lab → · Contrast checker → · Palette generator →

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