#7E23A0#7E23A0

#7E23A0 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.9% C 0.194 H 314.7°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#7E23A0
RGBrgb(126, 35, 160)
HSLhsl(284, 64%, 38%)
HSVhsv(284, 78%, 63%)
CMYKcmyk(21.2%, 78.1%, 0%, 37.3%)
CIE-LABlab(34.35, 56.45, -48.89)
CIE-LCHlch(34.35, 74.68, 319.10°)
OKLaboklab(45.93% 0.1365 -0.1381)
OKLCHoklch(45.93% 0.194 314.7)
XYZxyz(15.5493, 8.1763, 34.0100)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E23A0 #45A023
analogous
#3F23A0 #7E23A0 #A02383
triadic
#7E23A0 #A07E23 #23A07E
tetradic
#7E23A0 #A03F23 #45A023 #2383A0
square
#7E23A0 #A03F23 #45A023 #2383A0
split-complementary
#7E23A0 #83A023 #23A03F
monochromatic
#2F0D3C #56186E #7E23A0 #A52FD1 #BB61DC

Accessibility & contrast

On white

7.97
#7E23A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7E23A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E23A0
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E23A0#FFFFFF#000000##FFFFFF
##7E23A01.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA3
Deuteranopia (green-blind)
#1B539D
Tritanopia (blue-blind)
#7B4061
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e23a0;
/* rgb */ color: rgb(126, 35, 160);
/* oklch */ color: oklch(45.9% 0.194 314.7);
Tailwind
colors: {
  custom: {
    50: '#a869bd',
    500: '#7e23a0',
    950: '#000000',
  },
}
SCSS
$custom: #7e23a0;
$custom-light: #a869bd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e23a0",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 160
  },
  "hsl": {
    "h": 283.68,
    "s": 64.103,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45931,
    "c": 0.19413,
    "h": 314.7
  },
  "luminance": 0.08176
}

Semantic roles & 50–950 ramp

primary
#7E23A0
secondary
#79C15D
accent
#E7416E
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E23A0

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

Preview Lab → · Contrast checker → · Palette generator →

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