#7F24A2#7F24A2

#7F24A2 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.3% C 0.195 H 314.4°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#7F24A2
RGBrgb(127, 36, 162)
HSLhsl(283, 64%, 39%)
HSVhsv(283, 78%, 64%)
CMYKcmyk(21.6%, 77.8%, 0%, 36.5%)
CIE-LABlab(34.77, 56.69, -49.41)
CIE-LCHlch(34.77, 75.21, 318.92°)
OKLaboklab(46.31% 0.1366 -0.1396)
OKLCHoklch(46.31% 0.195 314.4)
XYZxyz(15.9038, 8.3830, 34.9557)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F24A2 #47A224
analogous
#4024A2 #7F24A2 #A22486
triadic
#7F24A2 #A27F24 #24A27F
tetradic
#7F24A2 #A24024 #47A224 #2486A2
square
#7F24A2 #A24024 #47A224 #2486A2
split-complementary
#7F24A2 #86A224 #24A240
monochromatic
#300E3E #581970 #7F24A2 #A532D1 #BB64DD

Accessibility & contrast

On white

7.85
#7F24A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7F24A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F24A2
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F24A2#FFFFFF#000000##FFFFFF
##7F24A21.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#1B549F
Tritanopia (blue-blind)
#7C4162
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f24a2;
/* rgb */ color: rgb(127, 36, 162);
/* oklch */ color: oklch(46.3% 0.195 314.4);
Tailwind
colors: {
  custom: {
    50: '#a869be',
    500: '#7f24a2',
    950: '#000000',
  },
}
SCSS
$custom: #7f24a2;
$custom-light: #a869be;
$custom-dark: #000000;
JSON
{
  "hex": "#7f24a2",
  "rgb": {
    "r": 127,
    "g": 36,
    "b": 162
  },
  "hsl": {
    "h": 283.333,
    "s": 63.636,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46305,
    "c": 0.19525,
    "h": 314.4
  },
  "luminance": 0.08382
}

Semantic roles & 50–950 ramp

primary
#7F24A2
secondary
#7BC260
accent
#E7416F
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F24A2

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

Preview Lab → · Contrast checker → · Palette generator →

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