#7D23A6#7D23A6

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

Color values

HEX#7D23A6
RGBrgb(125, 35, 166)
HSLhsl(281, 65%, 39%)
HSVhsv(281, 79%, 65%)
CMYKcmyk(24.7%, 78.9%, 0%, 34.9%)
CIE-LABlab(34.63, 57.49, -52.06)
CIE-LCHlch(34.63, 77.56, 317.84°)
OKLaboklab(46.24% 0.134 -0.1474)
OKLCHoklch(46.24% 0.199 312.3)
XYZxyz(15.9401, 8.3157, 36.8344)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D23A6 #4CA623
analogous
#3B23A6 #7D23A6 #A6238E
triadic
#7D23A6 #A67D23 #23A67D
tetradic
#7D23A6 #A63B23 #4CA623 #238EA6
square
#7D23A6 #A63B23 #4CA623 #238EA6
split-complementary
#7D23A6 #8EA623 #23A63B
monochromatic
#310E41 #571873 #7D23A6 #A132D4 #B865DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D23A6#FFFFFF#000000##FFFFFF
##7D23A61.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)
#004DAA
Deuteranopia (green-blind)
#0953A3
Tritanopia (blue-blind)
#784364
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d23a6;
/* rgb */ color: rgb(125, 35, 166);
/* oklch */ color: oklch(46.2% 0.199 312.3);
Tailwind
colors: {
  custom: {
    50: '#a769c1',
    500: '#7d23a6',
    950: '#000000',
  },
}
SCSS
$custom: #7d23a6;
$custom-light: #a769c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d23a6",
  "rgb": {
    "r": 125,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 281.221,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46239,
    "c": 0.19923,
    "h": 312.3
  },
  "luminance": 0.08315
}

Semantic roles & 50–950 ramp

primary
#7D23A6
secondary
#80C461
accent
#E84074
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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