#7F28B7#7F28B7

#7F28B7 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.3% C 0.211 H 307.7°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#7F28B7
RGBrgb(127, 40, 183)
HSLhsl(277, 64%, 44%)
HSVhsv(277, 78%, 72%)
CMYKcmyk(30.6%, 78.1%, 0%, 28.2%)
CIE-LABlab(36.83, 59.70, -58.61)
CIE-LCHlch(36.83, 83.66, 315.53°)
OKLaboklab(48.25% 0.1289 -0.1666)
OKLCHoklch(48.25% 0.211 307.7)
XYZxyz(18.0566, 9.4488, 45.6631)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F28B7 #60B728
analogous
#3728B7 #7F28B7 #B728A7
triadic
#7F28B7 #B77F28 #28B77F
tetradic
#7F28B7 #B73728 #60B728 #28A7B7
square
#7F28B7 #B73728 #60B728 #28A7B7
split-complementary
#7F28B7 #A7B728 #28B737
monochromatic
#391253 #5C1D85 #7F28B7 #9E46D6 #B878E1

Accessibility & contrast

On white

7.27
#7F28B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7F28B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F28B7
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F28B7#FFFFFF#000000##FFFFFF
##7F28B71.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BB
Deuteranopia (green-blind)
#0057B4
Tritanopia (blue-blind)
#764C6F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f28b7;
/* rgb */ color: rgb(127, 40, 183);
/* oklch */ color: oklch(48.3% 0.211 307.7);
Tailwind
colors: {
  custom: {
    50: '#aa6cce',
    500: '#7f28b7',
    950: '#000000',
  },
}
SCSS
$custom: #7f28b7;
$custom-light: #aa6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#7f28b7",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 183
  },
  "hsl": {
    "h": 276.503,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4825,
    "c": 0.21064,
    "h": 307.7
  },
  "luminance": 0.09449
}

Semantic roles & 50–950 ramp

primary
#7F28B7
secondary
#94C972
accent
#E74182
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110714
muted
#807A82

Preview Lab

Preview with #7F28B7

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

Preview Lab → · Contrast checker → · Palette generator →

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