#7C239A#7C239A

#7C239A is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.188 H 315.8°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#7C239A
RGBrgb(124, 35, 154)
HSLhsl(285, 63%, 37%)
HSVhsv(285, 77%, 60%)
CMYKcmyk(19.5%, 77.3%, 0%, 39.6%)
CIE-LABlab(33.61, 54.84, -46.46)
CIE-LCHlch(33.61, 71.88, 319.73°)
OKLaboklab(45.21% 0.1349 -0.131)
OKLCHoklch(45.21% 0.188 315.8)
XYZxyz(14.7450, 7.8208, 31.2984)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C239A #419A23
analogous
#41239A #7C239A #9A237D
triadic
#7C239A #9A7C23 #239A7C
tetradic
#7C239A #9A4123 #419A23 #237D9A
square
#7C239A #9A4123 #419A23 #237D9A
split-complementary
#7C239A #7D9A23 #239A41
monochromatic
#2C0C36 #541868 #7C239A #A42ECC #BB5DDA

Accessibility & contrast

On white

8.19
#7C239A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7C239A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C239A
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C239A#FFFFFF#000000##FFFFFF
##7C239A1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9D
Deuteranopia (green-blind)
#215197
Tritanopia (blue-blind)
#7A3E5E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7c239a;
/* rgb */ color: rgb(124, 35, 154);
/* oklch */ color: oklch(45.2% 0.188 315.8);
Tailwind
colors: {
  custom: {
    50: '#a668b8',
    500: '#7c239a',
    950: '#000000',
  },
}
SCSS
$custom: #7c239a;
$custom-light: #a668b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7c239a",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 154
  },
  "hsl": {
    "h": 284.874,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4521,
    "c": 0.188,
    "h": 315.8
  },
  "luminance": 0.0782
}

Semantic roles & 50–950 ramp

primary
#7C239A
secondary
#73BF5A
accent
#E6426B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C239A

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

Preview Lab → · Contrast checker → · Palette generator →

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