#7D23A7#7D23A7

#7D23A7 is a mid, highly saturated purple. Relative luminance 0.084; OKLCH L 46.3% C 0.200 H 312.0°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#7D23A7
RGBrgb(125, 35, 167)
HSLhsl(281, 65%, 40%)
HSVhsv(281, 79%, 65%)
CMYKcmyk(25.1%, 79%, 0%, 34.5%)
CIE-LABlab(34.71, 57.70, -52.54)
CIE-LCHlch(34.71, 78.04, 317.68°)
OKLaboklab(46.31% 0.1338 -0.1488)
OKLCHoklch(46.31% 0.2 312)
XYZxyz(16.0322, 8.3525, 37.3194)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D23A7 #4DA723
analogous
#3B23A7 #7D23A7 #A7238F
triadic
#7D23A7 #A77D23 #23A77D
tetradic
#7D23A7 #A73B23 #4DA723 #238FA7
square
#7D23A7 #A73B23 #4DA723 #238FA7
split-complementary
#7D23A7 #8FA723 #23A73B
monochromatic
#310E42 #571874 #7D23A7 #A133D4 #B866DF

Accessibility & contrast

On white

7.86
#7D23A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7D23A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D23A7
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D23A7#FFFFFF#000000##FFFFFF
##7D23A71.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAB
Deuteranopia (green-blind)
#0653A4
Tritanopia (blue-blind)
#784365
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d23a7;
/* rgb */ color: rgb(125, 35, 167);
/* oklch */ color: oklch(46.3% 0.200 312.0);
Tailwind
colors: {
  custom: {
    50: '#a769c2',
    500: '#7d23a7',
    950: '#000000',
  },
}
SCSS
$custom: #7d23a7;
$custom-light: #a769c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d23a7",
  "rgb": {
    "r": 125,
    "g": 35,
    "b": 167
  },
  "hsl": {
    "h": 280.909,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46314,
    "c": 0.20014,
    "h": 312
  },
  "luminance": 0.08352
}

Semantic roles & 50–950 ramp

primary
#7D23A7
secondary
#81C461
accent
#E83F75
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D23A7

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

Preview Lab → · Contrast checker → · Palette generator →

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