#7E23A6#7E23A6

#7E23A6 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.4% C 0.200 H 312.7°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#7E23A6
RGBrgb(126, 35, 166)
HSLhsl(282, 65%, 39%)
HSVhsv(282, 79%, 65%)
CMYKcmyk(24.1%, 78.9%, 0%, 34.9%)
CIE-LABlab(34.78, 57.68, -51.81)
CIE-LCHlch(34.78, 77.53, 318.07°)
OKLaboklab(46.38% 0.1354 -0.1466)
OKLCHoklch(46.38% 0.2 312.7)
XYZxyz(16.0869, 8.3913, 36.8413)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E23A6 #4BA623
analogous
#3C23A6 #7E23A6 #A6238D
triadic
#7E23A6 #A67E23 #23A67E
tetradic
#7E23A6 #A63C23 #4BA623 #238DA6
square
#7E23A6 #A63C23 #4BA623 #238DA6
split-complementary
#7E23A6 #8DA623 #23A63C
monochromatic
#310E41 #581873 #7E23A6 #A332D4 #B965DF

Accessibility & contrast

On white

7.84
#7E23A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7E23A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E23A6
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E23A6#FFFFFF#000000##FFFFFF
##7E23A61.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAA
Deuteranopia (green-blind)
#0D54A3
Tritanopia (blue-blind)
#794364
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e23a6;
/* rgb */ color: rgb(126, 35, 166);
/* oklch */ color: oklch(46.4% 0.200 312.7);
Tailwind
colors: {
  custom: {
    50: '#a869c1',
    500: '#7e23a6',
    950: '#000000',
  },
}
SCSS
$custom: #7e23a6;
$custom-light: #a869c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e23a6",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 281.679,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46377,
    "c": 0.19954,
    "h": 312.7
  },
  "luminance": 0.08391
}

Semantic roles & 50–950 ramp

primary
#7E23A6
secondary
#7FC461
accent
#E84073
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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