#7E23A9#7E23A9

#7E23A9 is a mid, highly saturated purple. Relative luminance 0.085; OKLCH L 46.6% C 0.202 H 311.8°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#7E23A9
RGBrgb(126, 35, 169)
HSLhsl(281, 66%, 40%)
HSVhsv(281, 79%, 66%)
CMYKcmyk(25.4%, 79.3%, 0%, 33.7%)
CIE-LABlab(35.01, 58.30, -53.24)
CIE-LCHlch(35.01, 78.95, 317.59°)
OKLaboklab(46.61% 0.1348 -0.1508)
OKLCHoklch(46.61% 0.202 311.8)
XYZxyz(16.3653, 8.5027, 38.3075)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E23A9 #4EA923
analogous
#3B23A9 #7E23A9 #A92391
triadic
#7E23A9 #A97E23 #23A97E
tetradic
#7E23A9 #A93B23 #4EA923 #2391A9
square
#7E23A9 #A93B23 #4EA923 #2391A9
split-complementary
#7E23A9 #91A923 #23A93B
monochromatic
#320E44 #581976 #7E23A9 #A134D5 #B967DF

Accessibility & contrast

On white

7.78
#7E23A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7E23A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E23A9
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E23A9#FFFFFF#000000##FFFFFF
##7E23A91.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAD
Deuteranopia (green-blind)
#0254A6
Tritanopia (blue-blind)
#794466
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e23a9;
/* rgb */ color: rgb(126, 35, 169);
/* oklch */ color: oklch(46.6% 0.202 311.8);
Tailwind
colors: {
  custom: {
    50: '#a869c3',
    500: '#7e23a9',
    950: '#000000',
  },
}
SCSS
$custom: #7e23a9;
$custom-light: #a869c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e23a9",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 169
  },
  "hsl": {
    "h": 280.746,
    "s": 65.686,
    "l": 40
  },
  "oklch": {
    "l": 0.46605,
    "c": 0.20226,
    "h": 311.8
  },
  "luminance": 0.08502
}

Semantic roles & 50–950 ramp

primary
#7E23A9
secondary
#82C563
accent
#E93F76
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E23A9

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

Preview Lab → · Contrast checker → · Palette generator →

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