#7F24A5#7F24A5

#7F24A5 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.5% C 0.198 H 313.4°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#7F24A5
RGBrgb(127, 36, 165)
HSLhsl(282, 64%, 39%)
HSVhsv(282, 78%, 65%)
CMYKcmyk(23%, 78.2%, 0%, 35.3%)
CIE-LABlab(34.98, 57.31, -50.87)
CIE-LCHlch(34.98, 76.63, 318.41°)
OKLaboklab(46.53% 0.136 -0.1438)
OKLCHoklch(46.53% 0.198 313.4)
XYZxyz(16.1736, 8.4909, 36.3769)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F24A5 #4AA524
analogous
#3F24A5 #7F24A5 #A5248A
triadic
#7F24A5 #A57F24 #24A57F
tetradic
#7F24A5 #A53F24 #4AA524 #248AA5
square
#7F24A5 #A53F24 #4AA524 #248AA5
split-complementary
#7F24A5 #8AA524 #24A53F
monochromatic
#320E41 #581973 #7F24A5 #A434D3 #BA66DE

Accessibility & contrast

On white

7.78
#7F24A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7F24A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F24A5
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F24A5#FFFFFF#000000##FFFFFF
##7F24A51.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA8
Deuteranopia (green-blind)
#1554A2
Tritanopia (blue-blind)
#7B4364
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f24a5;
/* rgb */ color: rgb(127, 36, 165);
/* oklch */ color: oklch(46.5% 0.198 313.4);
Tailwind
colors: {
  custom: {
    50: '#a96ac0',
    500: '#7f24a5',
    950: '#000000',
  },
}
SCSS
$custom: #7f24a5;
$custom-light: #a96ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f24a5",
  "rgb": {
    "r": 127,
    "g": 36,
    "b": 165
  },
  "hsl": {
    "h": 282.326,
    "s": 64.179,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46526,
    "c": 0.19798,
    "h": 313.4
  },
  "luminance": 0.0849
}

Semantic roles & 50–950 ramp

primary
#7F24A5
secondary
#7EC362
accent
#E74172
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F24A5

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

Preview Lab → · Contrast checker → · Palette generator →

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