#7F28A5#7F28A5

#7F28A5 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.9% C 0.194 H 313.1°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#7F28A5
RGBrgb(127, 40, 165)
HSLhsl(282, 61%, 40%)
HSVhsv(282, 76%, 65%)
CMYKcmyk(23%, 75.8%, 0%, 35.3%)
CIE-LABlab(35.49, 55.85, -50.05)
CIE-LCHlch(35.49, 75.00, 318.13°)
OKLaboklab(46.88% 0.1324 -0.1415)
OKLCHoklch(46.88% 0.194 313.1)
XYZxyz(16.3015, 8.7467, 36.4196)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F28A5 #4EA528
analogous
#4028A5 #7F28A5 #A5288C
triadic
#7F28A5 #A57F28 #28A57F
tetradic
#7F28A5 #A54028 #4EA528 #288CA5
square
#7F28A5 #A54028 #4EA528 #288CA5
split-complementary
#7F28A5 #8CA528 #28A540
monochromatic
#331042 #591C74 #7F28A5 #A23BCF #BA6CDB

Accessibility & contrast

On white

7.64
#7F28A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7F28A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F28A5
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F28A5#FFFFFF#000000##FFFFFF
##7F28A51.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#1A55A2
Tritanopia (blue-blind)
#7B4465
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f28a5;
/* rgb */ color: rgb(127, 40, 165);
/* oklch */ color: oklch(46.9% 0.194 313.1);
Tailwind
colors: {
  custom: {
    50: '#a86bc0',
    500: '#7f28a5',
    950: '#000000',
  },
}
SCSS
$custom: #7f28a5;
$custom-light: #a86bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f28a5",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 281.76,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46884,
    "c": 0.19378,
    "h": 313.1
  },
  "luminance": 0.08746
}

Semantic roles & 50–950 ramp

primary
#7F28A5
secondary
#83C267
accent
#E44474
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F28A5

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

Preview Lab → · Contrast checker → · Palette generator →

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