#7E23A3#7E23A3

#7E23A3 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.2% C 0.197 H 313.7°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#7E23A3
RGBrgb(126, 35, 163)
HSLhsl(283, 65%, 39%)
HSVhsv(283, 79%, 64%)
CMYKcmyk(22.7%, 78.5%, 0%, 36.1%)
CIE-LABlab(34.56, 57.06, -50.35)
CIE-LCHlch(34.56, 76.10, 318.57°)
OKLaboklab(46.15% 0.1359 -0.1423)
OKLCHoklch(46.15% 0.197 313.7)
XYZxyz(15.8149, 8.2826, 35.4088)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E23A3 #48A323
analogous
#3E23A3 #7E23A3 #A32388
triadic
#7E23A3 #A37E23 #23A37E
tetradic
#7E23A3 #A33E23 #48A323 #2388A3
square
#7E23A3 #A33E23 #48A323 #2388A3
split-complementary
#7E23A3 #88A323 #23A33E
monochromatic
#300D3E #571871 #7E23A3 #A431D3 #BA63DD

Accessibility & contrast

On white

7.91
#7E23A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7E23A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E23A3
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E23A3#FFFFFF#000000##FFFFFF
##7E23A31.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA6
Deuteranopia (green-blind)
#1553A0
Tritanopia (blue-blind)
#7A4163
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e23a3;
/* rgb */ color: rgb(126, 35, 163);
/* oklch */ color: oklch(46.2% 0.197 313.7);
Tailwind
colors: {
  custom: {
    50: '#a869bf',
    500: '#7e23a3',
    950: '#000000',
  },
}
SCSS
$custom: #7e23a3;
$custom-light: #a869bf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e23a3",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 163
  },
  "hsl": {
    "h": 282.656,
    "s": 64.646,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46153,
    "c": 0.19683,
    "h": 313.7
  },
  "luminance": 0.08282
}

Semantic roles & 50–950 ramp

primary
#7E23A3
secondary
#7CC35F
accent
#E84071
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E23A3

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

Preview Lab → · Contrast checker → · Palette generator →

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