#7E23AA#7E23AA

#7E23AA is a mid, highly saturated purple. Relative luminance 0.085; OKLCH L 46.7% C 0.203 H 311.5°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#7E23AA
RGBrgb(126, 35, 170)
HSLhsl(280, 66%, 40%)
HSVhsv(280, 79%, 67%)
CMYKcmyk(25.9%, 79.4%, 0%, 33.3%)
CIE-LABlab(35.08, 58.51, -53.72)
CIE-LCHlch(35.08, 79.43, 317.44°)
OKLaboklab(46.68% 0.1345 -0.1522)
OKLCHoklch(46.68% 0.203 311.5)
XYZxyz(16.4595, 8.5404, 38.8038)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E23AA #4FAA23
analogous
#3A23AA #7E23AA #AA2393
triadic
#7E23AA #AA7E23 #23AA7E
tetradic
#7E23AA #AA3A23 #4FAA23 #2393AA
square
#7E23AA #AA3A23 #4FAA23 #2393AA
split-complementary
#7E23AA #93AA23 #23AA3A
monochromatic
#330E44 #581977 #7E23AA #A135D5 #B968E0

Accessibility & contrast

On white

7.75
#7E23AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7E23AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E23AA
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E23AA#FFFFFF#000000##FFFFFF
##7E23AA1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAE
Deuteranopia (green-blind)
#0054A7
Tritanopia (blue-blind)
#784467
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e23aa;
/* rgb */ color: rgb(126, 35, 170);
/* oklch */ color: oklch(46.7% 0.203 311.5);
Tailwind
colors: {
  custom: {
    50: '#a869c4',
    500: '#7e23aa',
    950: '#000000',
  },
}
SCSS
$custom: #7e23aa;
$custom-light: #a869c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e23aa",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 170
  },
  "hsl": {
    "h": 280.444,
    "s": 65.854,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46681,
    "c": 0.20317,
    "h": 311.5
  },
  "luminance": 0.0854
}

Semantic roles & 50–950 ramp

primary
#7E23AA
secondary
#83C663
accent
#E93F76
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E23AA

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

Preview Lab → · Contrast checker → · Palette generator →

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