#7C23A5#7C23A5

#7C23A5 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.0% C 0.198 H 312.2°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#7C23A5
RGBrgb(124, 35, 165)
HSLhsl(281, 65%, 39%)
HSVhsv(281, 79%, 65%)
CMYKcmyk(24.8%, 78.8%, 0%, 35.3%)
CIE-LABlab(34.40, 57.10, -51.83)
CIE-LCHlch(34.40, 77.12, 317.77°)
OKLaboklab(46.02% 0.1329 -0.1468)
OKLCHoklch(46.02% 0.198 312.2)
XYZxyz(15.7035, 8.2042, 36.3464)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C23A5 #4CA523
analogous
#3B23A5 #7C23A5 #A5238D
triadic
#7C23A5 #A57C23 #23A57C
tetradic
#7C23A5 #A53B23 #4CA523 #238DA5
square
#7C23A5 #A53B23 #4CA523 #238DA5
split-complementary
#7C23A5 #8DA523 #23A53B
monochromatic
#300E40 #561873 #7C23A5 #A032D3 #B864DE

Accessibility & contrast

On white

7.95
#7C23A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7C23A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C23A5
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C23A5#FFFFFF#000000##FFFFFF
##7C23A51.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA9
Deuteranopia (green-blind)
#0953A2
Tritanopia (blue-blind)
#774364
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c23a5;
/* rgb */ color: rgb(124, 35, 165);
/* oklch */ color: oklch(46.0% 0.198 312.2);
Tailwind
colors: {
  custom: {
    50: '#a769c0',
    500: '#7c23a5',
    950: '#000000',
  },
}
SCSS
$custom: #7c23a5;
$custom-light: #a769c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c23a5",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 165
  },
  "hsl": {
    "h": 281.077,
    "s": 65,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46024,
    "c": 0.19801,
    "h": 312.2
  },
  "luminance": 0.08204
}

Semantic roles & 50–950 ramp

primary
#7C23A5
secondary
#80C460
accent
#E84075
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C23A5

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

Preview Lab → · Contrast checker → · Palette generator →

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