#7C23A8#7C23A8

#7C23A8 is a mid, highly saturated purple. Relative luminance 0.083; OKLCH L 46.3% C 0.201 H 311.2°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#7C23A8
RGBrgb(124, 35, 168)
HSLhsl(280, 66%, 40%)
HSVhsv(280, 79%, 66%)
CMYKcmyk(26.2%, 79.2%, 0%, 34.1%)
CIE-LABlab(34.63, 57.73, -53.27)
CIE-LCHlch(34.63, 78.55, 317.30°)
OKLaboklab(46.25% 0.1323 -0.151)
OKLCHoklch(46.25% 0.201 311.2)
XYZxyz(15.9797, 8.3147, 37.8013)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C23A8 #4FA823
analogous
#3923A8 #7C23A8 #A82392
triadic
#7C23A8 #A87C23 #23A87C
tetradic
#7C23A8 #A83923 #4FA823 #2392A8
square
#7C23A8 #A83923 #4FA823 #2392A8
split-complementary
#7C23A8 #92A823 #23A839
monochromatic
#310E43 #571875 #7C23A8 #9F34D5 #B766DF

Accessibility & contrast

On white

7.89
#7C23A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7C23A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C23A8
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C23A8#FFFFFF#000000##FFFFFF
##7C23A81.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#0053A5
Tritanopia (blue-blind)
#764466
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c23a8;
/* rgb */ color: rgb(124, 35, 168);
/* oklch */ color: oklch(46.3% 0.201 311.2);
Tailwind
colors: {
  custom: {
    50: '#a769c3',
    500: '#7c23a8',
    950: '#000000',
  },
}
SCSS
$custom: #7c23a8;
$custom-light: #a769c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c23a8",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 280.15,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46253,
    "c": 0.20075,
    "h": 311.2
  },
  "luminance": 0.08314
}

Semantic roles & 50–950 ramp

primary
#7C23A8
secondary
#83C562
accent
#E83F77
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C23A8

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

Preview Lab → · Contrast checker → · Palette generator →

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