#7E23A2#7E23A2

#7E23A2 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.1% C 0.196 H 314.0°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#7E23A2
RGBrgb(126, 35, 162)
HSLhsl(283, 64%, 39%)
HSVhsv(283, 78%, 64%)
CMYKcmyk(22.2%, 78.4%, 0%, 36.5%)
CIE-LABlab(34.49, 56.85, -49.87)
CIE-LCHlch(34.49, 75.63, 318.74°)
OKLaboklab(46.08% 0.1361 -0.1409)
OKLCHoklch(46.08% 0.196 314)
XYZxyz(15.7257, 8.2469, 34.9388)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E23A2 #47A223
analogous
#3E23A2 #7E23A2 #A22386
triadic
#7E23A2 #A27E23 #23A27E
tetradic
#7E23A2 #A23E23 #47A223 #2386A2
square
#7E23A2 #A23E23 #47A223 #2386A2
split-complementary
#7E23A2 #86A223 #23A23E
monochromatic
#300D3D #571870 #7E23A2 #A430D2 #BA62DD

Accessibility & contrast

On white

7.93
#7E23A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7E23A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E23A2
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E23A2#FFFFFF#000000##FFFFFF
##7E23A21.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#17539F
Tritanopia (blue-blind)
#7A4162
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e23a2;
/* rgb */ color: rgb(126, 35, 162);
/* oklch */ color: oklch(46.1% 0.196 314.0);
Tailwind
colors: {
  custom: {
    50: '#a869be',
    500: '#7e23a2',
    950: '#000000',
  },
}
SCSS
$custom: #7e23a2;
$custom-light: #a869be;
$custom-dark: #000000;
JSON
{
  "hex": "#7e23a2",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 162
  },
  "hsl": {
    "h": 282.992,
    "s": 64.467,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46079,
    "c": 0.19593,
    "h": 314
  },
  "luminance": 0.08246
}

Semantic roles & 50–950 ramp

primary
#7E23A2
secondary
#7BC25E
accent
#E74070
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E23A2

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

Preview Lab → · Contrast checker → · Palette generator →

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