#7F28A3#7F28A3

#7F28A3 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.7% C 0.192 H 313.8°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#7F28A3
RGBrgb(127, 40, 163)
HSLhsl(282, 61%, 40%)
HSVhsv(282, 75%, 64%)
CMYKcmyk(22.1%, 75.5%, 0%, 36.1%)
CIE-LABlab(35.35, 55.44, -49.08)
CIE-LCHlch(35.35, 74.04, 318.48°)
OKLaboklab(46.74% 0.1328 -0.1386)
OKLCHoklch(46.74% 0.192 313.8)
XYZxyz(16.1209, 8.6745, 35.4684)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F28A3 #4CA328
analogous
#4228A3 #7F28A3 #A3288A
triadic
#7F28A3 #A37F28 #28A37F
tetradic
#7F28A3 #A34228 #4CA328 #288AA3
square
#7F28A3 #A34228 #4CA328 #288AA3
split-complementary
#7F28A3 #8AA328 #28A342
monochromatic
#321041 #591C72 #7F28A3 #A33ACF #BA6BDB

Accessibility & contrast

On white

7.68
#7F28A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7F28A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F28A3
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F28A3#FFFFFF#000000##FFFFFF
##7F28A31.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f28a3;
/* rgb */ color: rgb(127, 40, 163);
/* oklch */ color: oklch(46.7% 0.192 313.8);
Tailwind
colors: {
  custom: {
    50: '#a86bbf',
    500: '#7f28a3',
    950: '#000000',
  },
}
SCSS
$custom: #7f28a3;
$custom-light: #a86bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f28a3",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 282.439,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46738,
    "c": 0.19192,
    "h": 313.8
  },
  "luminance": 0.08674
}

Semantic roles & 50–950 ramp

primary
#7F28A3
secondary
#80C166
accent
#E44473
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F28A3

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

Preview Lab → · Contrast checker → · Palette generator →

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