#7C23AC#7C23AC

#7C23AC is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.6% C 0.204 H 310.0°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#7C23AC
RGBrgb(124, 35, 172)
HSLhsl(279, 66%, 41%)
HSVhsv(279, 80%, 67%)
CMYKcmyk(27.9%, 79.7%, 0%, 32.5%)
CIE-LABlab(34.94, 58.57, -55.17)
CIE-LCHlch(34.94, 80.47, 316.71°)
OKLaboklab(46.56% 0.1314 -0.1566)
OKLCHoklch(46.56% 0.204 310)
XYZxyz(16.3581, 8.4661, 39.7941)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C23AC #53AC23
analogous
#3723AC #7C23AC #AC2397
triadic
#7C23AC #AC7C23 #23AC7C
tetradic
#7C23AC #AC3723 #53AC23 #2397AC
square
#7C23AC #AC3723 #53AC23 #2397AC
split-complementary
#7C23AC #97AC23 #23AC37
monochromatic
#330E46 #571979 #7C23AC #9E36D6 #B769E0

Accessibility & contrast

On white

7.80
#7C23AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7C23AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C23AC
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C23AC#FFFFFF#000000##FFFFFF
##7C23AC1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB0
Deuteranopia (green-blind)
#0053A9
Tritanopia (blue-blind)
#754668
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7c23ac;
/* rgb */ color: rgb(124, 35, 172);
/* oklch */ color: oklch(46.6% 0.204 310.0);
Tailwind
colors: {
  custom: {
    50: '#a769c6',
    500: '#7c23ac',
    950: '#000000',
  },
}
SCSS
$custom: #7c23ac;
$custom-light: #a769c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c23ac",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 172
  },
  "hsl": {
    "h": 278.978,
    "s": 66.184,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46563,
    "c": 0.20441,
    "h": 310
  },
  "luminance": 0.08466
}

Semantic roles & 50–950 ramp

primary
#7C23AC
secondary
#87C664
accent
#E93F7A
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C23AC

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

Preview Lab → · Contrast checker → · Palette generator →

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