#7E23AB#7E23AB

#7E23AB is a mid, highly saturated purple. Relative luminance 0.086; OKLCH L 46.8% C 0.204 H 311.2°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#7E23AB
RGBrgb(126, 35, 171)
HSLhsl(280, 66%, 40%)
HSVhsv(280, 80%, 67%)
CMYKcmyk(26.3%, 79.5%, 0%, 32.9%)
CIE-LABlab(35.16, 58.72, -54.20)
CIE-LCHlch(35.16, 79.91, 317.29°)
OKLaboklab(46.76% 0.1343 -0.1536)
OKLCHoklch(46.76% 0.204 311.2)
XYZxyz(16.5545, 8.5784, 39.3039)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E23AB #50AB23
analogous
#3A23AB #7E23AB #AB2394
triadic
#7E23AB #AB7E23 #23AB7E
tetradic
#7E23AB #AB3A23 #50AB23 #2394AB
square
#7E23AB #AB3A23 #50AB23 #2394AB
split-complementary
#7E23AB #94AB23 #23AB3A
monochromatic
#330E45 #591978 #7E23AB #A135D6 #B868E0

Accessibility & contrast

On white

7.73
#7E23AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7E23AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E23AB
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E23AB#FFFFFF#000000##FFFFFF
##7E23AB1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#0054A8
Tritanopia (blue-blind)
#784567
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e23ab;
/* rgb */ color: rgb(126, 35, 171);
/* oklch */ color: oklch(46.8% 0.204 311.2);
Tailwind
colors: {
  custom: {
    50: '#a869c5',
    500: '#7e23ab',
    950: '#000000',
  },
}
SCSS
$custom: #7e23ab;
$custom-light: #a869c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e23ab",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 171
  },
  "hsl": {
    "h": 280.147,
    "s": 66.019,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46758,
    "c": 0.20408,
    "h": 311.2
  },
  "luminance": 0.08578
}

Semantic roles & 50–950 ramp

primary
#7E23AB
secondary
#84C664
accent
#E93F77
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E23AB

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

Preview Lab → · Contrast checker → · Palette generator →

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