#7C23A7#7C23A7

#7C23A7 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.2% C 0.200 H 311.5°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#7C23A7
RGBrgb(124, 35, 167)
HSLhsl(280, 65%, 40%)
HSVhsv(280, 79%, 65%)
CMYKcmyk(25.7%, 79%, 0%, 34.5%)
CIE-LABlab(34.55, 57.52, -52.79)
CIE-LCHlch(34.55, 78.07, 317.45°)
OKLaboklab(46.18% 0.1325 -0.1496)
OKLCHoklch(46.18% 0.2 311.5)
XYZxyz(15.8869, 8.2776, 37.3126)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C23A7 #4EA723
analogous
#3A23A7 #7C23A7 #A72390
triadic
#7C23A7 #A77C23 #23A77C
tetradic
#7C23A7 #A73A23 #4EA723 #2390A7
square
#7C23A7 #A73A23 #4EA723 #2390A7
split-complementary
#7C23A7 #90A723 #23A73A
monochromatic
#310E42 #561874 #7C23A7 #A033D4 #B766DF

Accessibility & contrast

On white

7.91
#7C23A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C23A7
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C23A7#FFFFFF#000000##FFFFFF
##7C23A71.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAB
Deuteranopia (green-blind)
#0153A4
Tritanopia (blue-blind)
#764365
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c23a7;
/* rgb */ color: rgb(124, 35, 167);
/* oklch */ color: oklch(46.2% 0.200 311.5);
Tailwind
colors: {
  custom: {
    50: '#a769c2',
    500: '#7c23a7',
    950: '#000000',
  },
}
SCSS
$custom: #7c23a7;
$custom-light: #a769c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c23a7",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 167
  },
  "hsl": {
    "h": 280.455,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46177,
    "c": 0.19983,
    "h": 311.5
  },
  "luminance": 0.08277
}

Semantic roles & 50–950 ramp

primary
#7C23A7
secondary
#82C461
accent
#E83F76
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C23A7

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

Preview Lab → · Contrast checker → · Palette generator →

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