#7E23AF#7E23AF

#7E23AF is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 47.1% C 0.208 H 310.0°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#7E23AF
RGBrgb(126, 35, 175)
HSLhsl(279, 67%, 41%)
HSVhsv(279, 80%, 69%)
CMYKcmyk(28%, 80%, 0%, 31.4%)
CIE-LABlab(35.47, 59.56, -56.09)
CIE-LCHlch(35.47, 81.81, 316.72°)
OKLaboklab(47.07% 0.1334 -0.1592)
OKLCHoklch(47.07% 0.208 310)
XYZxyz(16.9415, 8.7332, 41.3423)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E23AF #54AF23
analogous
#3823AF #7E23AF #AF239A
triadic
#7E23AF #AF7E23 #23AF7E
tetradic
#7E23AF #AF3823 #54AF23 #239AAF
square
#7E23AF #AF3823 #54AF23 #239AAF
split-complementary
#7E23AF #9AAF23 #23AF38
monochromatic
#350F49 #59197C #7E23AF #9F38D7 #B86BE1

Accessibility & contrast

On white

7.65
#7E23AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7E23AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E23AF
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E23AF#FFFFFF#000000##FFFFFF
##7E23AF1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#0055AC
Tritanopia (blue-blind)
#77476A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e23af;
/* rgb */ color: rgb(126, 35, 175);
/* oklch */ color: oklch(47.1% 0.208 310.0);
Tailwind
colors: {
  custom: {
    50: '#a96ac8',
    500: '#7e23af',
    950: '#000000',
  },
}
SCSS
$custom: #7e23af;
$custom-light: #a96ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e23af",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 175
  },
  "hsl": {
    "h": 279,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47068,
    "c": 0.20772,
    "h": 310
  },
  "luminance": 0.08733
}

Semantic roles & 50–950 ramp

primary
#7E23AF
secondary
#88C766
accent
#EA3E7A
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E23AF

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

Preview Lab → · Contrast checker → · Palette generator →

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