#7C28B1#7C28B1

#7C28B1 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.4% C 0.204 H 308.1°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#7C28B1
RGBrgb(124, 40, 177)
HSLhsl(277, 63%, 43%)
HSVhsv(277, 77%, 69%)
CMYKcmyk(29.9%, 77.4%, 0%, 30.6%)
CIE-LABlab(35.94, 57.86, -56.52)
CIE-LCHlch(35.94, 80.89, 315.67°)
OKLaboklab(47.39% 0.1261 -0.1606)
OKLCHoklch(47.39% 0.204 308.1)
XYZxyz(17.0051, 8.9773, 42.4234)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C28B1 #5DB128
analogous
#3728B1 #7C28B1 #B128A2
triadic
#7C28B1 #B17C28 #28B17C
tetradic
#7C28B1 #B13728 #5DB128 #28A2B1
square
#7C28B1 #B13728 #5DB128 #28A2B1
split-complementary
#7C28B1 #A2B128 #28B137
monochromatic
#36114D #591D7F #7C28B1 #9C42D4 #B674E0

Accessibility & contrast

On white

7.51
#7C28B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7C28B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C28B1
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C28B1#FFFFFF#000000##FFFFFF
##7C28B11.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B5
Deuteranopia (green-blind)
#0055AE
Tritanopia (blue-blind)
#734A6C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c28b1;
/* rgb */ color: rgb(124, 40, 177);
/* oklch */ color: oklch(47.4% 0.204 308.1);
Tailwind
colors: {
  custom: {
    50: '#a76cc9',
    500: '#7c28b1',
    950: '#000000',
  },
}
SCSS
$custom: #7c28b1;
$custom-light: #a76cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7c28b1",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 276.788,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47389,
    "c": 0.20418,
    "h": 308.1
  },
  "luminance": 0.08977
}

Semantic roles & 50–950 ramp

primary
#7C28B1
secondary
#90C76E
accent
#E64281
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C28B1

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

Preview Lab → · Contrast checker → · Palette generator →

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