#7C23A2#7C23A2

#7C23A2 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.195 H 313.1°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#7C23A2
RGBrgb(124, 35, 162)
HSLhsl(282, 64%, 39%)
HSVhsv(282, 78%, 64%)
CMYKcmyk(23.5%, 78.4%, 0%, 36.5%)
CIE-LABlab(34.18, 56.48, -50.38)
CIE-LCHlch(34.18, 75.68, 318.26°)
OKLaboklab(45.8% 0.1335 -0.1425)
OKLCHoklch(45.8% 0.195 313.1)
XYZxyz(15.4336, 8.0963, 34.9251)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C23A2 #49A223
analogous
#3C23A2 #7C23A2 #A22388
triadic
#7C23A2 #A27C23 #23A27C
tetradic
#7C23A2 #A23C23 #49A223 #2388A2
square
#7C23A2 #A23C23 #49A223 #2388A2
split-complementary
#7C23A2 #88A223 #23A23C
monochromatic
#2F0D3D #551870 #7C23A2 #A230D2 #B862DD

Accessibility & contrast

On white

8.02
#7C23A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7C23A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C23A2
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C23A2#FFFFFF#000000##FFFFFF
##7C23A21.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#12529F
Tritanopia (blue-blind)
#784162
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7c23a2;
/* rgb */ color: rgb(124, 35, 162);
/* oklch */ color: oklch(45.8% 0.195 313.1);
Tailwind
colors: {
  custom: {
    50: '#a669be',
    500: '#7c23a2',
    950: '#000000',
  },
}
SCSS
$custom: #7c23a2;
$custom-light: #a669be;
$custom-dark: #000000;
JSON
{
  "hex": "#7c23a2",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 162
  },
  "hsl": {
    "h": 282.047,
    "s": 64.467,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45798,
    "c": 0.19527,
    "h": 313.1
  },
  "luminance": 0.08096
}

Semantic roles & 50–950 ramp

primary
#7C23A2
secondary
#7CC25E
accent
#E74072
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C23A2

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

Preview Lab → · Contrast checker → · Palette generator →

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