#7C23A3#7C23A3

#7C23A3 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.9% C 0.196 H 312.8°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#7C23A3
RGBrgb(124, 35, 163)
HSLhsl(282, 65%, 39%)
HSVhsv(282, 79%, 64%)
CMYKcmyk(23.9%, 78.5%, 0%, 36.1%)
CIE-LABlab(34.26, 56.68, -50.87)
CIE-LCHlch(34.26, 76.16, 318.09°)
OKLaboklab(45.87% 0.1333 -0.1439)
OKLCHoklch(45.87% 0.196 312.8)
XYZxyz(15.5229, 8.1320, 35.3952)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C23A3 #4AA323
analogous
#3C23A3 #7C23A3 #A3238A
triadic
#7C23A3 #A37C23 #23A37C
tetradic
#7C23A3 #A33C23 #4AA323 #238AA3
square
#7C23A3 #A33C23 #4AA323 #238AA3
split-complementary
#7C23A3 #8AA323 #23A33C
monochromatic
#2F0D3E #561871 #7C23A3 #A131D3 #B863DD

Accessibility & contrast

On white

8.00
#7C23A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7C23A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C23A3
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C23A3#FFFFFF#000000##FFFFFF
##7C23A31.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA6
Deuteranopia (green-blind)
#1052A0
Tritanopia (blue-blind)
#784263
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c23a3;
/* rgb */ color: rgb(124, 35, 163);
/* oklch */ color: oklch(45.9% 0.196 312.8);
Tailwind
colors: {
  custom: {
    50: '#a669bf',
    500: '#7c23a3',
    950: '#000000',
  },
}
SCSS
$custom: #7c23a3;
$custom-light: #a669bf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c23a3",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 163
  },
  "hsl": {
    "h": 281.719,
    "s": 64.646,
    "l": 38.824
  },
  "oklch": {
    "l": 0.45873,
    "c": 0.19618,
    "h": 312.8
  },
  "luminance": 0.08131
}

Semantic roles & 50–950 ramp

primary
#7C23A3
secondary
#7DC35F
accent
#E84073
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C23A3

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

Preview Lab → · Contrast checker → · Palette generator →

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