#7E23A5#7E23A5

#7E23A5 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.3% C 0.199 H 313.0°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#7E23A5
RGBrgb(126, 35, 165)
HSLhsl(282, 65%, 39%)
HSVhsv(282, 79%, 65%)
CMYKcmyk(23.6%, 78.8%, 0%, 35.3%)
CIE-LABlab(34.71, 57.47, -51.32)
CIE-LCHlch(34.71, 77.05, 318.23°)
OKLaboklab(46.3% 0.1356 -0.1452)
OKLCHoklch(46.3% 0.199 313)
XYZxyz(15.9955, 8.3548, 36.3601)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E23A5 #4AA523
analogous
#3D23A5 #7E23A5 #A5238B
triadic
#7E23A5 #A57E23 #23A57E
tetradic
#7E23A5 #A53D23 #4AA523 #238BA5
square
#7E23A5 #A53D23 #4AA523 #238BA5
split-complementary
#7E23A5 #8BA523 #23A53D
monochromatic
#310E40 #571873 #7E23A5 #A332D3 #BA64DE

Accessibility & contrast

On white

7.86
#7E23A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7E23A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E23A5
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E23A5#FFFFFF#000000##FFFFFF
##7E23A51.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA9
Deuteranopia (green-blind)
#1054A2
Tritanopia (blue-blind)
#7A4264
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e23a5;
/* rgb */ color: rgb(126, 35, 165);
/* oklch */ color: oklch(46.3% 0.199 313.0);
Tailwind
colors: {
  custom: {
    50: '#a869c0',
    500: '#7e23a5',
    950: '#000000',
  },
}
SCSS
$custom: #7e23a5;
$custom-light: #a869c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e23a5",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 165
  },
  "hsl": {
    "h": 282,
    "s": 65,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46302,
    "c": 0.19864,
    "h": 313
  },
  "luminance": 0.08354
}

Semantic roles & 50–950 ramp

primary
#7E23A5
secondary
#7EC460
accent
#E84072
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E23A5

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

Preview Lab → · Contrast checker → · Palette generator →

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