#7D23A2#7D23A2

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

Color values

HEX#7D23A2
RGBrgb(125, 35, 162)
HSLhsl(283, 64%, 39%)
HSVhsv(283, 78%, 64%)
CMYKcmyk(22.8%, 78.4%, 0%, 36.5%)
CIE-LABlab(34.34, 56.66, -50.13)
CIE-LCHlch(34.34, 75.65, 318.50°)
OKLaboklab(45.94% 0.1348 -0.1417)
OKLCHoklch(45.94% 0.196 313.6)
XYZxyz(15.5789, 8.1712, 34.9320)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D23A2 #48A223
analogous
#3D23A2 #7D23A2 #A22387
triadic
#7D23A2 #A27D23 #23A27D
tetradic
#7D23A2 #A23D23 #48A223 #2387A2
square
#7D23A2 #A23D23 #48A223 #2387A2
split-complementary
#7D23A2 #87A223 #23A23D
monochromatic
#2F0D3D #561870 #7D23A2 #A330D2 #B962DD

Accessibility & contrast

On white

7.97
#7D23A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D23A2
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D23A2#FFFFFF#000000##FFFFFF
##7D23A21.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#15539F
Tritanopia (blue-blind)
#794162
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d23a2;
/* rgb */ color: rgb(125, 35, 162);
/* oklch */ color: oklch(45.9% 0.196 313.6);
Tailwind
colors: {
  custom: {
    50: '#a769be',
    500: '#7d23a2',
    950: '#000000',
  },
}
SCSS
$custom: #7d23a2;
$custom-light: #a769be;
$custom-dark: #000000;
JSON
{
  "hex": "#7d23a2",
  "rgb": {
    "r": 125,
    "g": 35,
    "b": 162
  },
  "hsl": {
    "h": 282.52,
    "s": 64.467,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45938,
    "c": 0.1956,
    "h": 313.6
  },
  "luminance": 0.08171
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D23A2

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

Preview Lab → · Contrast checker → · Palette generator →

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