#7E23A8#7E23A8

#7E23A8 is a mid, highly saturated purple. Relative luminance 0.085; OKLCH L 46.5% C 0.201 H 312.1°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#7E23A8
RGBrgb(126, 35, 168)
HSLhsl(281, 66%, 40%)
HSVhsv(281, 79%, 66%)
CMYKcmyk(25%, 79.2%, 0%, 34.1%)
CIE-LABlab(34.93, 58.09, -52.77)
CIE-LCHlch(34.93, 78.48, 317.75°)
OKLaboklab(46.53% 0.135 -0.1494)
OKLCHoklch(46.53% 0.201 312.1)
XYZxyz(16.2718, 8.4653, 37.8150)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E23A8 #4DA823
analogous
#3C23A8 #7E23A8 #A8238F
triadic
#7E23A8 #A87E23 #23A87E
tetradic
#7E23A8 #A83C23 #4DA823 #238FA8
square
#7E23A8 #A83C23 #4DA823 #238FA8
split-complementary
#7E23A8 #8FA823 #23A83C
monochromatic
#320E43 #581875 #7E23A8 #A234D5 #B966DF

Accessibility & contrast

On white

7.80
#7E23A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7E23A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E23A8
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E23A8#FFFFFF#000000##FFFFFF
##7E23A81.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAC
Deuteranopia (green-blind)
#0654A5
Tritanopia (blue-blind)
#794466
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e23a8;
/* rgb */ color: rgb(126, 35, 168);
/* oklch */ color: oklch(46.5% 0.201 312.1);
Tailwind
colors: {
  custom: {
    50: '#a869c3',
    500: '#7e23a8',
    950: '#000000',
  },
}
SCSS
$custom: #7e23a8;
$custom-light: #a869c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e23a8",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 281.053,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46529,
    "c": 0.20136,
    "h": 312.1
  },
  "luminance": 0.08465
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E23A8

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

Preview Lab → · Contrast checker → · Palette generator →

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