#7C28B3#7C28B3

#7C28B3 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.5% C 0.206 H 307.6°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#7C28B3
RGBrgb(124, 40, 179)
HSLhsl(276, 63%, 43%)
HSVhsv(276, 78%, 70%)
CMYKcmyk(30.7%, 77.7%, 0%, 29.8%)
CIE-LABlab(36.09, 58.30, -57.46)
CIE-LCHlch(36.09, 81.86, 315.41°)
OKLaboklab(47.55% 0.1257 -0.1633)
OKLCHoklch(47.55% 0.206 307.6)
XYZxyz(17.2059, 9.0576, 43.4810)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C28B3 #5FB328
analogous
#3728B3 #7C28B3 #B328A4
triadic
#7C28B3 #B37C28 #28B37C
tetradic
#7C28B3 #B33728 #5FB328 #28A4B3
square
#7C28B3 #B33728 #5FB328 #28A4B3
split-complementary
#7C28B3 #A4B328 #28B337
monochromatic
#37124F #591D81 #7C28B3 #9B43D5 #B675E0

Accessibility & contrast

On white

7.47
#7C28B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7C28B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C28B3
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C28B3#FFFFFF#000000##FFFFFF
##7C28B31.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B7
Deuteranopia (green-blind)
#0056B0
Tritanopia (blue-blind)
#734B6D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c28b3;
/* rgb */ color: rgb(124, 40, 179);
/* oklch */ color: oklch(47.5% 0.206 307.6);
Tailwind
colors: {
  custom: {
    50: '#a76ccb',
    500: '#7c28b3',
    950: '#000000',
  },
}
SCSS
$custom: #7c28b3;
$custom-light: #a76ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c28b3",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 276.259,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47545,
    "c": 0.20609,
    "h": 307.6
  },
  "luminance": 0.09057
}

Semantic roles & 50–950 ramp

primary
#7C28B3
secondary
#92C86F
accent
#E64183
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C28B3

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

Preview Lab → · Contrast checker → · Palette generator →

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