#7E23AC#7E23AC

#7E23AC is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.8% C 0.205 H 310.9°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#7E23AC
RGBrgb(126, 35, 172)
HSLhsl(280, 66%, 41%)
HSVhsv(280, 80%, 67%)
CMYKcmyk(26.7%, 79.7%, 0%, 32.5%)
CIE-LABlab(35.24, 58.92, -54.67)
CIE-LCHlch(35.24, 80.38, 317.14°)
OKLaboklab(46.84% 0.1341 -0.155)
OKLCHoklch(46.84% 0.205 310.9)
XYZxyz(16.6502, 8.6167, 39.8078)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E23AC #51AC23
analogous
#3923AC #7E23AC #AC2395
triadic
#7E23AC #AC7E23 #23AC7E
tetradic
#7E23AC #AC3923 #51AC23 #2395AC
square
#7E23AC #AC3923 #51AC23 #2395AC
split-complementary
#7E23AC #95AC23 #23AC39
monochromatic
#330E46 #591979 #7E23AC #A036D6 #B869E0

Accessibility & contrast

On white

7.71
#7E23AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E23AC
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E23AC#FFFFFF#000000##FFFFFF
##7E23AC1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB0
Deuteranopia (green-blind)
#0054A9
Tritanopia (blue-blind)
#784568
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e23ac;
/* rgb */ color: rgb(126, 35, 172);
/* oklch */ color: oklch(46.8% 0.205 310.9);
Tailwind
colors: {
  custom: {
    50: '#a869c6',
    500: '#7e23ac',
    950: '#000000',
  },
}
SCSS
$custom: #7e23ac;
$custom-light: #a869c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e23ac",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 172
  },
  "hsl": {
    "h": 279.854,
    "s": 66.184,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46835,
    "c": 0.20499,
    "h": 310.9
  },
  "luminance": 0.08616
}

Semantic roles & 50–950 ramp

primary
#7E23AC
secondary
#85C664
accent
#E93F78
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E23AC

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

Preview Lab → · Contrast checker → · Palette generator →

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