#7D23A5#7D23A5

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

Color values

HEX#7D23A5
RGBrgb(125, 35, 165)
HSLhsl(282, 65%, 39%)
HSVhsv(282, 79%, 65%)
CMYKcmyk(24.2%, 78.8%, 0%, 35.3%)
CIE-LABlab(34.56, 57.28, -51.58)
CIE-LCHlch(34.56, 77.08, 318.00°)
OKLaboklab(46.16% 0.1342 -0.146)
OKLCHoklch(46.16% 0.198 312.6)
XYZxyz(15.8488, 8.2791, 36.3532)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D23A5 #4BA523
analogous
#3C23A5 #7D23A5 #A5238C
triadic
#7D23A5 #A57D23 #23A57D
tetradic
#7D23A5 #A53C23 #4BA523 #238CA5
square
#7D23A5 #A53C23 #4BA523 #238CA5
split-complementary
#7D23A5 #8CA523 #23A53C
monochromatic
#310E40 #571873 #7D23A5 #A232D3 #B964DE

Accessibility & contrast

On white

7.91
#7D23A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D23A5
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D23A5#FFFFFF#000000##FFFFFF
##7D23A51.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA9
Deuteranopia (green-blind)
#0D53A2
Tritanopia (blue-blind)
#784264
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d23a5;
/* rgb */ color: rgb(125, 35, 165);
/* oklch */ color: oklch(46.2% 0.198 312.6);
Tailwind
colors: {
  custom: {
    50: '#a769c0',
    500: '#7d23a5',
    950: '#000000',
  },
}
SCSS
$custom: #7d23a5;
$custom-light: #a769c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d23a5",
  "rgb": {
    "r": 125,
    "g": 35,
    "b": 165
  },
  "hsl": {
    "h": 281.538,
    "s": 65,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46163,
    "c": 0.19832,
    "h": 312.6
  },
  "luminance": 0.08279
}

Semantic roles & 50–950 ramp

primary
#7D23A5
secondary
#7FC460
accent
#E84074
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D23A5

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

Preview Lab → · Contrast checker → · Palette generator →

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