#7C28B5#7C28B5

#7C28B5 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.7% C 0.208 H 307.0°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#7C28B5
RGBrgb(124, 40, 181)
HSLhsl(276, 64%, 43%)
HSVhsv(276, 78%, 71%)
CMYKcmyk(31.5%, 77.9%, 0%, 29%)
CIE-LABlab(36.25, 58.74, -58.39)
CIE-LCHlch(36.25, 82.83, 315.17°)
OKLaboklab(47.7% 0.1252 -0.1661)
OKLCHoklch(47.7% 0.208 307)
XYZxyz(17.4097, 9.1391, 44.5540)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C28B5 #61B528
analogous
#3628B5 #7C28B5 #B528A7
triadic
#7C28B5 #B57C28 #28B57C
tetradic
#7C28B5 #B53628 #61B528 #28A7B5
square
#7C28B5 #B53628 #61B528 #28A7B5
split-complementary
#7C28B5 #A7B528 #28B536
monochromatic
#371251 #5A1D83 #7C28B5 #9B44D6 #B677E1

Accessibility & contrast

On white

7.43
#7C28B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7C28B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C28B5
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C28B5#FFFFFF#000000##FFFFFF
##7C28B51.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#0056B2
Tritanopia (blue-blind)
#724C6E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c28b5;
/* rgb */ color: rgb(124, 40, 181);
/* oklch */ color: oklch(47.7% 0.208 307.0);
Tailwind
colors: {
  custom: {
    50: '#a76ccc',
    500: '#7c28b5',
    950: '#000000',
  },
}
SCSS
$custom: #7c28b5;
$custom-light: #a76ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#7c28b5",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 181
  },
  "hsl": {
    "h": 275.745,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47703,
    "c": 0.20799,
    "h": 307
  },
  "luminance": 0.09139
}

Semantic roles & 50–950 ramp

primary
#7C28B5
secondary
#94C870
accent
#E74184
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C28B5

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

Preview Lab → · Contrast checker → · Palette generator →

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