#7E24B4#7E24B4

#7E24B4 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.5% C 0.211 H 308.4°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#7E24B4
RGBrgb(126, 36, 180)
HSLhsl(278, 67%, 42%)
HSVhsv(278, 80%, 71%)
CMYKcmyk(30%, 80%, 0%, 29.4%)
CIE-LABlab(35.97, 60.28, -58.24)
CIE-LCHlch(35.97, 83.82, 315.99°)
OKLaboklab(47.54% 0.1314 -0.1655)
OKLCHoklch(47.54% 0.211 308.4)
XYZxyz(17.4716, 8.9930, 43.9866)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E24B4 #5AB424
analogous
#3624B4 #7E24B4 #B424A2
triadic
#7E24B4 #B47E24 #24B47E
tetradic
#7E24B4 #B43624 #5AB424 #24A2B4
square
#7E24B4 #B43624 #5AB424 #24A2B4
split-complementary
#7E24B4 #A2B424 #24B436
monochromatic
#37104E #5A1A81 #7E24B4 #9E3DD8 #B870E2

Accessibility & contrast

On white

7.50
#7E24B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7E24B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E24B4
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E24B4#FFFFFF#000000##FFFFFF
##7E24B41.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B8
Deuteranopia (green-blind)
#0055B1
Tritanopia (blue-blind)
#75496D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e24b4;
/* rgb */ color: rgb(126, 36, 180);
/* oklch */ color: oklch(47.5% 0.211 308.4);
Tailwind
colors: {
  custom: {
    50: '#a96acb',
    500: '#7e24b4',
    950: '#000000',
  },
}
SCSS
$custom: #7e24b4;
$custom-light: #a96acb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e24b4",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 180
  },
  "hsl": {
    "h": 277.5,
    "s": 66.667,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47543,
    "c": 0.21137,
    "h": 308.4
  },
  "luminance": 0.08993
}

Semantic roles & 50–950 ramp

primary
#7E24B4
secondary
#8EC96B
accent
#EA3E7E
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E24B4

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

Preview Lab → · Contrast checker → · Palette generator →

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