#7E23AD#7E23AD

#7E23AD is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.9% C 0.206 H 310.6°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#7E23AD
RGBrgb(126, 35, 173)
HSLhsl(280, 66%, 41%)
HSVhsv(280, 80%, 68%)
CMYKcmyk(27.2%, 79.8%, 0%, 32.2%)
CIE-LABlab(35.31, 59.13, -55.15)
CIE-LCHlch(35.31, 80.86, 317.00°)
OKLaboklab(46.91% 0.1339 -0.1564)
OKLCHoklch(46.91% 0.206 310.6)
XYZxyz(16.7466, 8.6552, 40.3155)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E23AD #52AD23
analogous
#3923AD #7E23AD #AD2397
triadic
#7E23AD #AD7E23 #23AD7E
tetradic
#7E23AD #AD3923 #52AD23 #2397AD
square
#7E23AD #AD3923 #52AD23 #2397AD
split-complementary
#7E23AD #97AD23 #23AD39
monochromatic
#340E47 #59197A #7E23AD #A037D6 #B86AE1

Accessibility & contrast

On white

7.69
#7E23AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7E23AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E23AD
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E23AD#FFFFFF#000000##FFFFFF
##7E23AD1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB1
Deuteranopia (green-blind)
#0054AA
Tritanopia (blue-blind)
#774668
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e23ad;
/* rgb */ color: rgb(126, 35, 173);
/* oklch */ color: oklch(46.9% 0.206 310.6);
Tailwind
colors: {
  custom: {
    50: '#a869c6',
    500: '#7e23ad',
    950: '#000000',
  },
}
SCSS
$custom: #7e23ad;
$custom-light: #a869c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e23ad",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 173
  },
  "hsl": {
    "h": 279.565,
    "s": 66.346,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46912,
    "c": 0.2059,
    "h": 310.6
  },
  "luminance": 0.08655
}

Semantic roles & 50–950 ramp

primary
#7E23AD
secondary
#86C765
accent
#E93F79
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E23AD

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

Preview Lab → · Contrast checker → · Palette generator →

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