#7F24B4#7F24B4

#7F24B4 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.7% C 0.212 H 308.9°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#7F24B4
RGBrgb(127, 36, 180)
HSLhsl(278, 67%, 42%)
HSVhsv(278, 80%, 71%)
CMYKcmyk(29.4%, 80%, 0%, 29.4%)
CIE-LABlab(36.12, 60.45, -58.00)
CIE-LCHlch(36.12, 83.77, 316.19°)
OKLaboklab(47.68% 0.1328 -0.1648)
OKLCHoklch(47.68% 0.212 308.9)
XYZxyz(17.6198, 9.0694, 43.9935)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F24B4 #59B424
analogous
#3724B4 #7F24B4 #B424A1
triadic
#7F24B4 #B47F24 #24B47F
tetradic
#7F24B4 #B43724 #59B424 #24A1B4
square
#7F24B4 #B43724 #59B424 #24A1B4
split-complementary
#7F24B4 #A1B424 #24B437
monochromatic
#37104E #5B1A81 #7F24B4 #9F3DD8 #B870E2

Accessibility & contrast

On white

7.46
#7F24B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7F24B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F24B4
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F24B4#FFFFFF#000000##FFFFFF
##7F24B41.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0056B1
Tritanopia (blue-blind)
#77496D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f24b4;
/* rgb */ color: rgb(127, 36, 180);
/* oklch */ color: oklch(47.7% 0.212 308.9);
Tailwind
colors: {
  custom: {
    50: '#a96acb',
    500: '#7f24b4',
    950: '#000000',
  },
}
SCSS
$custom: #7f24b4;
$custom-light: #a96acb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f24b4",
  "rgb": {
    "r": 127,
    "g": 36,
    "b": 180
  },
  "hsl": {
    "h": 277.917,
    "s": 66.667,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47676,
    "c": 0.21164,
    "h": 308.9
  },
  "luminance": 0.09069
}

Semantic roles & 50–950 ramp

primary
#7F24B4
secondary
#8DC96B
accent
#EA3E7D
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110713
muted
#807A82

Preview Lab

Preview with #7F24B4

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

Preview Lab → · Contrast checker → · Palette generator →

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