#7F28B6#7F28B6

#7F28B6 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.2% C 0.210 H 308.0°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#7F28B6
RGBrgb(127, 40, 182)
HSLhsl(277, 64%, 44%)
HSVhsv(277, 78%, 71%)
CMYKcmyk(30.2%, 78%, 0%, 28.6%)
CIE-LABlab(36.76, 59.48, -58.14)
CIE-LCHlch(36.76, 83.18, 315.65°)
OKLaboklab(48.17% 0.1291 -0.1652)
OKLCHoklch(48.17% 0.21 308)
XYZxyz(17.9529, 9.4073, 45.1169)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F28B6 #5FB628
analogous
#3828B6 #7F28B6 #B628A6
triadic
#7F28B6 #B67F28 #28B67F
tetradic
#7F28B6 #B63828 #5FB628 #28A6B6
square
#7F28B6 #B63828 #5FB628 #28A6B6
split-complementary
#7F28B6 #A6B628 #28B638
monochromatic
#391252 #5C1D84 #7F28B6 #9E45D6 #B877E1

Accessibility & contrast

On white

7.29
#7F28B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7F28B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F28B6
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F28B6#FFFFFF#000000##FFFFFF
##7F28B61.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BA
Deuteranopia (green-blind)
#0057B3
Tritanopia (blue-blind)
#764C6F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f28b6;
/* rgb */ color: rgb(127, 40, 182);
/* oklch */ color: oklch(48.2% 0.210 308.0);
Tailwind
colors: {
  custom: {
    50: '#a96ccd',
    500: '#7f28b6',
    950: '#000000',
  },
}
SCSS
$custom: #7f28b6;
$custom-light: #a96ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f28b6",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 182
  },
  "hsl": {
    "h": 276.761,
    "s": 63.964,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48172,
    "c": 0.2097,
    "h": 308
  },
  "luminance": 0.09407
}

Semantic roles & 50–950 ramp

primary
#7F28B6
secondary
#93C971
accent
#E74181
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110714
muted
#807A82

Preview Lab

Preview with #7F28B6

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

Preview Lab → · Contrast checker → · Palette generator →

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