#7C24B2#7C24B2

#7C24B2 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.1% C 0.209 H 308.2°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#7C24B2
RGBrgb(124, 36, 178)
HSLhsl(277, 66%, 42%)
HSVhsv(277, 80%, 70%)
CMYKcmyk(30.3%, 79.8%, 0%, 30.2%)
CIE-LABlab(35.52, 59.51, -57.80)
CIE-LCHlch(35.52, 82.96, 315.84°)
OKLaboklab(47.12% 0.1292 -0.1643)
OKLCHoklch(47.12% 0.209 308.2)
XYZxyz(16.9772, 8.7615, 42.9076)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C24B2 #5AB224
analogous
#3524B2 #7C24B2 #B224A1
triadic
#7C24B2 #B27C24 #24B27C
tetradic
#7C24B2 #B23524 #5AB224 #24A1B2
square
#7C24B2 #B23524 #5AB224 #24A1B2
split-complementary
#7C24B2 #A1B224 #24B235
monochromatic
#350F4C #591A7F #7C24B2 #9C3CD8 #B66FE2

Accessibility & contrast

On white

7.63
#7C24B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7C24B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C24B2
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C24B2#FFFFFF#000000##FFFFFF
##7C24B21.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0054AF
Tritanopia (blue-blind)
#73496B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c24b2;
/* rgb */ color: rgb(124, 36, 178);
/* oklch */ color: oklch(47.1% 0.209 308.2);
Tailwind
colors: {
  custom: {
    50: '#a76aca',
    500: '#7c24b2',
    950: '#000000',
  },
}
SCSS
$custom: #7c24b2;
$custom-light: #a76aca;
$custom-dark: #000000;
JSON
{
  "hex": "#7c24b2",
  "rgb": {
    "r": 124,
    "g": 36,
    "b": 178
  },
  "hsl": {
    "h": 277.183,
    "s": 66.355,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47119,
    "c": 0.20901,
    "h": 308.2
  },
  "luminance": 0.08761
}

Semantic roles & 50–950 ramp

primary
#7C24B2
secondary
#8EC869
accent
#E93F7F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C24B2

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

Preview Lab → · Contrast checker → · Palette generator →

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