#7C23A4#7C23A4

#7C23A4 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.9% C 0.197 H 312.5°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#7C23A4
RGBrgb(124, 35, 164)
HSLhsl(281, 65%, 39%)
HSVhsv(281, 79%, 64%)
CMYKcmyk(24.4%, 78.7%, 0%, 35.7%)
CIE-LABlab(34.33, 56.89, -51.35)
CIE-LCHlch(34.33, 76.64, 317.93°)
OKLaboklab(45.95% 0.1331 -0.1453)
OKLCHoklch(45.95% 0.197 312.5)
XYZxyz(15.6128, 8.1679, 35.8689)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C23A4 #4BA423
analogous
#3B23A4 #7C23A4 #A4238C
triadic
#7C23A4 #A47C23 #23A47C
tetradic
#7C23A4 #A43B23 #4BA423 #238CA4
square
#7C23A4 #A43B23 #4BA423 #238CA4
split-complementary
#7C23A4 #8CA423 #23A43B
monochromatic
#300D3F #561872 #7C23A4 #A131D3 #B864DE

Accessibility & contrast

On white

7.97
#7C23A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7C23A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C23A4
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C23A4#FFFFFF#000000##FFFFFF
##7C23A41.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#0D52A1
Tritanopia (blue-blind)
#774263
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c23a4;
/* rgb */ color: rgb(124, 35, 164);
/* oklch */ color: oklch(45.9% 0.197 312.5);
Tailwind
colors: {
  custom: {
    50: '#a669c0',
    500: '#7c23a4',
    950: '#000000',
  },
}
SCSS
$custom: #7c23a4;
$custom-light: #a669c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c23a4",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 164
  },
  "hsl": {
    "h": 281.395,
    "s": 64.824,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45949,
    "c": 0.19709,
    "h": 312.5
  },
  "luminance": 0.08167
}

Semantic roles & 50–950 ramp

primary
#7C23A4
secondary
#7FC360
accent
#E84074
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C23A4

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

Preview Lab → · Contrast checker → · Palette generator →

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