#7E23A4#7E23A4

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

Color values

HEX#7E23A4
RGBrgb(126, 35, 164)
HSLhsl(282, 65%, 39%)
HSVhsv(282, 79%, 64%)
CMYKcmyk(23.2%, 78.7%, 0%, 35.7%)
CIE-LABlab(34.64, 57.26, -50.84)
CIE-LCHlch(34.64, 76.58, 318.40°)
OKLaboklab(46.23% 0.1358 -0.1438)
OKLCHoklch(46.23% 0.198 313.4)
XYZxyz(15.9049, 8.3185, 35.8826)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E23A4 #49A423
analogous
#3E23A4 #7E23A4 #A4238A
triadic
#7E23A4 #A47E23 #23A47E
tetradic
#7E23A4 #A43E23 #49A423 #238AA4
square
#7E23A4 #A43E23 #49A423 #238AA4
split-complementary
#7E23A4 #8AA423 #23A43E
monochromatic
#310D3F #571872 #7E23A4 #A331D3 #BA64DE

Accessibility & contrast

On white

7.88
#7E23A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E23A4
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E23A4#FFFFFF#000000##FFFFFF
##7E23A41.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA7
Deuteranopia (green-blind)
#1353A1
Tritanopia (blue-blind)
#7A4263
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e23a4;
/* rgb */ color: rgb(126, 35, 164);
/* oklch */ color: oklch(46.2% 0.198 313.4);
Tailwind
colors: {
  custom: {
    50: '#a869c0',
    500: '#7e23a4',
    950: '#000000',
  },
}
SCSS
$custom: #7e23a4;
$custom-light: #a869c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e23a4",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 164
  },
  "hsl": {
    "h": 282.326,
    "s": 64.824,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46227,
    "c": 0.19774,
    "h": 313.4
  },
  "luminance": 0.08318
}

Semantic roles & 50–950 ramp

primary
#7E23A4
secondary
#7DC360
accent
#E84071
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E23A4

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

Preview Lab → · Contrast checker → · Palette generator →

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