#7C28B8#7C28B8

#7C28B8 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.9% C 0.211 H 306.2°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#7C28B8
RGBrgb(124, 40, 184)
HSLhsl(275, 64%, 44%)
HSVhsv(275, 78%, 72%)
CMYKcmyk(32.6%, 78.3%, 0%, 27.8%)
CIE-LABlab(36.49, 59.40, -59.79)
CIE-LCHlch(36.49, 84.28, 314.82°)
OKLaboklab(47.94% 0.1245 -0.1702)
OKLCHoklch(47.94% 0.211 306.2)
XYZxyz(17.7208, 9.2635, 46.1926)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C28B8 #64B828
analogous
#3428B8 #7C28B8 #B828AC
triadic
#7C28B8 #B87C28 #28B87C
tetradic
#7C28B8 #B83428 #64B828 #28ACB8
square
#7C28B8 #B83428 #64B828 #28ACB8
split-complementary
#7C28B8 #ACB828 #28B834
monochromatic
#381253 #5A1D86 #7C28B8 #9B46D7 #B679E2

Accessibility & contrast

On white

7.36
#7C28B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7C28B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C28B8
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C28B8#FFFFFF#000000##FFFFFF
##7C28B81.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BC
Deuteranopia (green-blind)
#0056B5
Tritanopia (blue-blind)
#714D70
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7c28b8;
/* rgb */ color: rgb(124, 40, 184);
/* oklch */ color: oklch(47.9% 0.211 306.2);
Tailwind
colors: {
  custom: {
    50: '#a86cce',
    500: '#7c28b8',
    950: '#000000',
  },
}
SCSS
$custom: #7c28b8;
$custom-light: #a86cce;
$custom-dark: #000000;
JSON
{
  "hex": "#7c28b8",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 184
  },
  "hsl": {
    "h": 275,
    "s": 64.286,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47942,
    "c": 0.21084,
    "h": 306.2
  },
  "luminance": 0.09263
}

Semantic roles & 50–950 ramp

primary
#7C28B8
secondary
#97CA72
accent
#E74186
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7C28B8

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

Preview Lab → · Contrast checker → · Palette generator →

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