#7C28B4#7C28B4

#7C28B4 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.6% C 0.207 H 307.3°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#7C28B4
RGBrgb(124, 40, 180)
HSLhsl(276, 64%, 43%)
HSVhsv(276, 78%, 71%)
CMYKcmyk(31.1%, 77.8%, 0%, 29.4%)
CIE-LABlab(36.17, 58.52, -57.93)
CIE-LCHlch(36.17, 82.34, 315.29°)
OKLaboklab(47.62% 0.1254 -0.1647)
OKLCHoklch(47.62% 0.207 307.3)
XYZxyz(17.3074, 9.0982, 44.0155)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C28B4 #60B428
analogous
#3628B4 #7C28B4 #B428A6
triadic
#7C28B4 #B47C28 #28B47C
tetradic
#7C28B4 #B43628 #60B428 #28A6B4
square
#7C28B4 #B43628 #60B428 #28A6B4
split-complementary
#7C28B4 #A6B428 #28B436
monochromatic
#371250 #5A1D82 #7C28B4 #9B44D5 #B676E1

Accessibility & contrast

On white

7.45
#7C28B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7C28B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C28B4
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C28B4#FFFFFF#000000##FFFFFF
##7C28B41.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0056B1
Tritanopia (blue-blind)
#724C6D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c28b4;
/* rgb */ color: rgb(124, 40, 180);
/* oklch */ color: oklch(47.6% 0.207 307.3);
Tailwind
colors: {
  custom: {
    50: '#a76ccb',
    500: '#7c28b4',
    950: '#000000',
  },
}
SCSS
$custom: #7c28b4;
$custom-light: #a76ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c28b4",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 180
  },
  "hsl": {
    "h": 276,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47624,
    "c": 0.20704,
    "h": 307.3
  },
  "luminance": 0.09098
}

Semantic roles & 50–950 ramp

primary
#7C28B4
secondary
#93C870
accent
#E74183
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C28B4

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

Preview Lab → · Contrast checker → · Palette generator →

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