#7F28A2#7F28A2

#7F28A2 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.7% C 0.191 H 314.1°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#7F28A2
RGBrgb(127, 40, 162)
HSLhsl(283, 60%, 40%)
HSVhsv(283, 75%, 64%)
CMYKcmyk(21.6%, 75.3%, 0%, 36.5%)
CIE-LABlab(35.28, 55.23, -48.59)
CIE-LCHlch(35.28, 73.56, 318.66°)
OKLaboklab(46.67% 0.1329 -0.1372)
OKLCHoklch(46.67% 0.191 314.1)
XYZxyz(16.0317, 8.6388, 34.9984)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F28A2 #4BA228
analogous
#4228A2 #7F28A2 #A22888
triadic
#7F28A2 #A27F28 #28A27F
tetradic
#7F28A2 #A24228 #4BA228 #2888A2
square
#7F28A2 #A24228 #4BA228 #2888A2
split-complementary
#7F28A2 #88A228 #28A242
monochromatic
#321040 #591C71 #7F28A2 #A339CE #BA6ADA

Accessibility & contrast

On white

7.70
#7F28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F28A2
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F28A2#FFFFFF#000000##FFFFFF
##7F28A21.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#1F559F
Tritanopia (blue-blind)
#7C4363
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f28a2;
/* rgb */ color: rgb(127, 40, 162);
/* oklch */ color: oklch(46.7% 0.191 314.1);
Tailwind
colors: {
  custom: {
    50: '#a86bbe',
    500: '#7f28a2',
    950: '#000000',
  },
}
SCSS
$custom: #7f28a2;
$custom-light: #a86bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7f28a2",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 282.787,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46666,
    "c": 0.19099,
    "h": 314.1
  },
  "luminance": 0.08638
}

Semantic roles & 50–950 ramp

primary
#7F28A2
secondary
#7FC165
accent
#E44472
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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