#7E23A7#7E23A7

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

Color values

HEX#7E23A7
RGBrgb(126, 35, 167)
HSLhsl(281, 65%, 40%)
HSVhsv(281, 79%, 65%)
CMYKcmyk(24.6%, 79%, 0%, 34.5%)
CIE-LABlab(34.86, 57.88, -52.29)
CIE-LCHlch(34.86, 78.00, 317.91°)
OKLaboklab(46.45% 0.1352 -0.148)
OKLCHoklch(46.45% 0.2 312.4)
XYZxyz(16.1790, 8.4282, 37.3263)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E23A7 #4CA723
analogous
#3C23A7 #7E23A7 #A7238E
triadic
#7E23A7 #A77E23 #23A77E
tetradic
#7E23A7 #A73C23 #4CA723 #238EA7
square
#7E23A7 #A73C23 #4CA723 #238EA7
split-complementary
#7E23A7 #8EA723 #23A73C
monochromatic
#320E42 #581874 #7E23A7 #A233D4 #B966DF

Accessibility & contrast

On white

7.82
#7E23A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E23A7
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E23A7#FFFFFF#000000##FFFFFF
##7E23A71.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAB
Deuteranopia (green-blind)
#0A54A4
Tritanopia (blue-blind)
#794365
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e23a7;
/* rgb */ color: rgb(126, 35, 167);
/* oklch */ color: oklch(46.5% 0.200 312.4);
Tailwind
colors: {
  custom: {
    50: '#a869c2',
    500: '#7e23a7',
    950: '#000000',
  },
}
SCSS
$custom: #7e23a7;
$custom-light: #a869c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e23a7",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 167
  },
  "hsl": {
    "h": 281.364,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46453,
    "c": 0.20045,
    "h": 312.4
  },
  "luminance": 0.08428
}

Semantic roles & 50–950 ramp

primary
#7E23A7
secondary
#80C461
accent
#E83F74
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E23A7

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

Preview Lab → · Contrast checker → · Palette generator →

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