#7F24A8#7F24A8

#7F24A8 is a mid, highly saturated purple. Relative luminance 0.086; OKLCH L 46.8% C 0.201 H 312.4°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#7F24A8
RGBrgb(127, 36, 168)
HSLhsl(281, 65%, 40%)
HSVhsv(281, 79%, 66%)
CMYKcmyk(24.4%, 78.6%, 0%, 34.1%)
CIE-LABlab(35.21, 57.93, -52.32)
CIE-LCHlch(35.21, 78.06, 317.91°)
OKLaboklab(46.75% 0.1354 -0.1481)
OKLCHoklch(46.75% 0.201 312.4)
XYZxyz(16.4499, 8.6014, 37.8319)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F24A8 #4DA824
analogous
#3D24A8 #7F24A8 #A8248F
triadic
#7F24A8 #A87F24 #24A87F
tetradic
#7F24A8 #A83D24 #4DA824 #248FA8
square
#7F24A8 #A83D24 #4DA824 #248FA8
split-complementary
#7F24A8 #8FA824 #24A83D
monochromatic
#330E43 #591976 #7F24A8 #A335D4 #BA68DF

Accessibility & contrast

On white

7.72
#7F24A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7F24A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F24A8
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F24A8#FFFFFF#000000##FFFFFF
##7F24A81.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAC
Deuteranopia (green-blind)
#0D55A5
Tritanopia (blue-blind)
#7A4466
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f24a8;
/* rgb */ color: rgb(127, 36, 168);
/* oklch */ color: oklch(46.8% 0.201 312.4);
Tailwind
colors: {
  custom: {
    50: '#a96ac3',
    500: '#7f24a8',
    950: '#000000',
  },
}
SCSS
$custom: #7f24a8;
$custom-light: #a96ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f24a8",
  "rgb": {
    "r": 127,
    "g": 36,
    "b": 168
  },
  "hsl": {
    "h": 281.364,
    "s": 64.706,
    "l": 40
  },
  "oklch": {
    "l": 0.4675,
    "c": 0.20069,
    "h": 312.4
  },
  "luminance": 0.08601
}

Semantic roles & 50–950 ramp

primary
#7F24A8
secondary
#82C463
accent
#E84074
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F24A8

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

Preview Lab → · Contrast checker → · Palette generator →

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