#7E23AE#7E23AE

#7E23AE is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 47.0% C 0.207 H 310.3°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#7E23AE
RGBrgb(126, 35, 174)
HSLhsl(279, 67%, 41%)
HSVhsv(279, 80%, 68%)
CMYKcmyk(27.6%, 79.9%, 0%, 31.8%)
CIE-LABlab(35.39, 59.34, -55.62)
CIE-LCHlch(35.39, 81.33, 316.86°)
OKLaboklab(46.99% 0.1337 -0.1578)
OKLCHoklch(46.99% 0.207 310.3)
XYZxyz(16.8437, 8.6941, 40.8270)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E23AE #53AE23
analogous
#3923AE #7E23AE #AE2398
triadic
#7E23AE #AE7E23 #23AE7E
tetradic
#7E23AE #AE3923 #53AE23 #2398AE
square
#7E23AE #AE3923 #53AE23 #2398AE
split-complementary
#7E23AE #98AE23 #23AE39
monochromatic
#340F48 #59197B #7E23AE #A037D7 #B86AE1

Accessibility & contrast

On white

7.67
#7E23AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7E23AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E23AE
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E23AE#FFFFFF#000000##FFFFFF
##7E23AE1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB2
Deuteranopia (green-blind)
#0055AB
Tritanopia (blue-blind)
#774669
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e23ae;
/* rgb */ color: rgb(126, 35, 174);
/* oklch */ color: oklch(47.0% 0.207 310.3);
Tailwind
colors: {
  custom: {
    50: '#a86ac7',
    500: '#7e23ae',
    950: '#000000',
  },
}
SCSS
$custom: #7e23ae;
$custom-light: #a86ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e23ae",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 174
  },
  "hsl": {
    "h": 279.281,
    "s": 66.507,
    "l": 40.98
  },
  "oklch": {
    "l": 0.4699,
    "c": 0.20681,
    "h": 310.3
  },
  "luminance": 0.08694
}

Semantic roles & 50–950 ramp

primary
#7E23AE
secondary
#87C766
accent
#E93E79
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E23AE

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

Preview Lab → · Contrast checker → · Palette generator →

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