#7F28A4#7F28A4

#7F28A4 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.8% C 0.193 H 313.4°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#7F28A4
RGBrgb(127, 40, 164)
HSLhsl(282, 61%, 40%)
HSVhsv(282, 76%, 64%)
CMYKcmyk(22.6%, 75.6%, 0%, 35.7%)
CIE-LABlab(35.42, 55.64, -49.57)
CIE-LCHlch(35.42, 74.52, 318.31°)
OKLaboklab(46.81% 0.1326 -0.14)
OKLCHoklch(46.81% 0.193 313.4)
XYZxyz(16.2109, 8.7105, 35.9421)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F28A4 #4DA428
analogous
#4128A4 #7F28A4 #A4288B
triadic
#7F28A4 #A47F28 #28A47F
tetradic
#7F28A4 #A44128 #4DA428 #288BA4
square
#7F28A4 #A44128 #4DA428 #288BA4
split-complementary
#7F28A4 #8BA428 #28A441
monochromatic
#331042 #591C73 #7F28A4 #A33ACF #BA6BDB

Accessibility & contrast

On white

7.66
#7F28A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7F28A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F28A4
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F28A4#FFFFFF#000000##FFFFFF
##7F28A41.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA7
Deuteranopia (green-blind)
#1C55A1
Tritanopia (blue-blind)
#7B4464
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f28a4;
/* rgb */ color: rgb(127, 40, 164);
/* oklch */ color: oklch(46.8% 0.193 313.4);
Tailwind
colors: {
  custom: {
    50: '#a86bc0',
    500: '#7f28a4',
    950: '#000000',
  },
}
SCSS
$custom: #7f28a4;
$custom-light: #a86bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f28a4",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 282.097,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.46811,
    "c": 0.19285,
    "h": 313.4
  },
  "luminance": 0.0871
}

Semantic roles & 50–950 ramp

primary
#7F28A4
secondary
#82C166
accent
#E44474
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F28A4

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

Preview Lab → · Contrast checker → · Palette generator →

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