#7F24A7#7F24A7

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

Color values

HEX#7F24A7
RGBrgb(127, 36, 167)
HSLhsl(282, 65%, 40%)
HSVhsv(282, 78%, 65%)
CMYKcmyk(24%, 78.4%, 0%, 34.5%)
CIE-LABlab(35.13, 57.72, -51.84)
CIE-LCHlch(35.13, 77.58, 318.07°)
OKLaboklab(46.68% 0.1356 -0.1467)
OKLCHoklch(46.68% 0.2 312.8)
XYZxyz(16.3571, 8.5643, 37.3432)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F24A7 #4CA724
analogous
#3D24A7 #7F24A7 #A7248E
triadic
#7F24A7 #A77F24 #24A77F
tetradic
#7F24A7 #A73D24 #4CA724 #248EA7
square
#7F24A7 #A73D24 #4CA724 #248EA7
split-complementary
#7F24A7 #8EA724 #24A73D
monochromatic
#320E42 #591975 #7F24A7 #A335D3 #BA67DE

Accessibility & contrast

On white

7.74
#7F24A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7F24A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F24A7
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F24A7#FFFFFF#000000##FFFFFF
##7F24A71.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAB
Deuteranopia (green-blind)
#1054A4
Tritanopia (blue-blind)
#7A4365
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f24a7;
/* rgb */ color: rgb(127, 36, 167);
/* oklch */ color: oklch(46.7% 0.200 312.8);
Tailwind
colors: {
  custom: {
    50: '#a96ac2',
    500: '#7f24a7',
    950: '#000000',
  },
}
SCSS
$custom: #7f24a7;
$custom-light: #a96ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f24a7",
  "rgb": {
    "r": 127,
    "g": 36,
    "b": 167
  },
  "hsl": {
    "h": 281.679,
    "s": 64.532,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46675,
    "c": 0.19978,
    "h": 312.8
  },
  "luminance": 0.08564
}

Semantic roles & 50–950 ramp

primary
#7F24A7
secondary
#80C463
accent
#E84073
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F24A7

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

Preview Lab → · Contrast checker → · Palette generator →

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