#7F24AA#7F24AA

#7F24AA is a mid, highly saturated purple. Relative luminance 0.087; OKLCH L 46.9% C 0.203 H 311.8°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#7F24AA
RGBrgb(127, 36, 170)
HSLhsl(281, 65%, 40%)
HSVhsv(281, 79%, 67%)
CMYKcmyk(25.3%, 78.8%, 0%, 33.3%)
CIE-LABlab(35.35, 58.34, -53.28)
CIE-LCHlch(35.35, 79.01, 317.60°)
OKLaboklab(46.9% 0.1351 -0.1509)
OKLCHoklch(46.9% 0.203 311.8)
XYZxyz(16.6376, 8.6765, 38.8207)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F24AA #4FAA24
analogous
#3C24AA #7F24AA #AA2492
triadic
#7F24AA #AA7F24 #24AA7F
tetradic
#7F24AA #AA3C24 #4FAA24 #2492AA
square
#7F24AA #AA3C24 #4FAA24 #2492AA
split-complementary
#7F24AA #92AA24 #24AA3C
monochromatic
#340F45 #591977 #7F24AA #A237D5 #B969DF

Accessibility & contrast

On white

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

On black

2.74
#7F24AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7F24AA#FFFFFF#000000##FFFFFF
##7F24AA1.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAE
Deuteranopia (green-blind)
#0555A7
Tritanopia (blue-blind)
#7A4567
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f24aa;
/* rgb */ color: rgb(127, 36, 170);
/* oklch */ color: oklch(46.9% 0.203 311.8);
Tailwind
colors: {
  custom: {
    50: '#a96ac4',
    500: '#7f24aa',
    950: '#000000',
  },
}
SCSS
$custom: #7f24aa;
$custom-light: #a96ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f24aa",
  "rgb": {
    "r": 127,
    "g": 36,
    "b": 170
  },
  "hsl": {
    "h": 280.746,
    "s": 65.049,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46901,
    "c": 0.20252,
    "h": 311.8
  },
  "luminance": 0.08676
}

Semantic roles & 50–950 ramp

primary
#7F24AA
secondary
#84C565
accent
#E84076
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F24AA

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

Preview Lab → · Contrast checker → · Palette generator →

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