#7F28AA#7F28AA

#7F28AA is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.3% C 0.198 H 311.5°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7F28AA
RGBrgb(127, 40, 170)
HSLhsl(280, 62%, 41%)
HSVhsv(280, 76%, 67%)
CMYKcmyk(25.3%, 76.5%, 0%, 33.3%)
CIE-LABlab(35.85, 56.90, -52.47)
CIE-LCHlch(35.85, 77.40, 317.32°)
OKLaboklab(47.25% 0.1316 -0.1486)
OKLCHoklch(47.25% 0.198 311.5)
XYZxyz(16.7655, 8.9323, 38.8634)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F28AA #53AA28
analogous
#3E28AA #7F28AA #AA2894
triadic
#7F28AA #AA7F28 #28AA7F
tetradic
#7F28AA #AA3E28 #53AA28 #2894AA
square
#7F28AA #AA3E28 #53AA28 #2894AA
split-complementary
#7F28AA #94AA28 #28AA3E
monochromatic
#351147 #5A1C78 #7F28AA #A13ED2 #B96FDD

Accessibility & contrast

On white

7.54
#7F28AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7F28AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F28AA
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F28AA#FFFFFF#000000##FFFFFF
##7F28AA1.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#0E56A7
Tritanopia (blue-blind)
#7A4768
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f28aa;
/* rgb */ color: rgb(127, 40, 170);
/* oklch */ color: oklch(47.3% 0.198 311.5);
Tailwind
colors: {
  custom: {
    50: '#a96cc4',
    500: '#7f28aa',
    950: '#000000',
  },
}
SCSS
$custom: #7f28aa;
$custom-light: #a96cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f28aa",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 280.154,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47253,
    "c": 0.19845,
    "h": 311.5
  },
  "luminance": 0.08932
}

Semantic roles & 50–950 ramp

primary
#7F28AA
secondary
#88C46A
accent
#E54378
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F28AA

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

Preview Lab → · Contrast checker → · Palette generator →

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