#7C23A6#7C23A6

#7C23A6 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.1% C 0.199 H 311.8°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#7C23A6
RGBrgb(124, 35, 166)
HSLhsl(281, 65%, 39%)
HSVhsv(281, 79%, 65%)
CMYKcmyk(25.3%, 78.9%, 0%, 34.9%)
CIE-LABlab(34.48, 57.31, -52.31)
CIE-LCHlch(34.48, 77.60, 317.61°)
OKLaboklab(46.1% 0.1327 -0.1482)
OKLCHoklch(46.1% 0.199 311.8)
XYZxyz(15.7949, 8.2408, 36.8276)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C23A6 #4DA623
analogous
#3A23A6 #7C23A6 #A6238F
triadic
#7C23A6 #A67C23 #23A67C
tetradic
#7C23A6 #A63A23 #4DA623 #238FA6
square
#7C23A6 #A63A23 #4DA623 #238FA6
split-complementary
#7C23A6 #8FA623 #23A63A
monochromatic
#300E41 #561873 #7C23A6 #A032D4 #B865DF

Accessibility & contrast

On white

7.93
#7C23A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7C23A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C23A6
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C23A6#FFFFFF#000000##FFFFFF
##7C23A61.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAA
Deuteranopia (green-blind)
#0553A3
Tritanopia (blue-blind)
#774364
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c23a6;
/* rgb */ color: rgb(124, 35, 166);
/* oklch */ color: oklch(46.1% 0.199 311.8);
Tailwind
colors: {
  custom: {
    50: '#a769c1',
    500: '#7c23a6',
    950: '#000000',
  },
}
SCSS
$custom: #7c23a6;
$custom-light: #a769c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c23a6",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 280.763,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.461,
    "c": 0.19892,
    "h": 311.8
  },
  "luminance": 0.0824
}

Semantic roles & 50–950 ramp

primary
#7C23A6
secondary
#81C461
accent
#E84076
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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