#7E23D4#7E23D4

#7E23D4 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 50.1% C 0.242 H 300.5°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#7E23D4
RGBrgb(126, 35, 212)
HSLhsl(271, 72%, 48%)
HSVhsv(271, 83%, 83%)
CMYKcmyk(40.6%, 83.5%, 0%, 16.9%)
CIE-LABlab(38.53, 67.62, -72.78)
CIE-LCHlch(38.53, 99.34, 312.89°)
OKLaboklab(50.15% 0.1227 -0.2082)
OKLCHoklch(50.15% 0.242 300.5)
XYZxyz(21.0859, 10.3909, 63.1693)
Luminance0.1039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E23D4 #79D423
analogous
#2523D4 #7E23D4 #D423D1
triadic
#7E23D4 #D47E23 #23D47E
tetradic
#7E23D4 #D42523 #79D423 #23D1D4
square
#7E23D4 #D42523 #79D423 #23D1D4
split-complementary
#7E23D4 #D1D423 #23D425
monochromatic
#40126B #5F1A9F #7E23D4 #9C52E2 #BA86EB

Accessibility & contrast

On white

6.82
#7E23D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#7E23D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E23D4
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E23D4#FFFFFF#000000##FFFFFF
##7E23D41.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD9
Deuteranopia (green-blind)
#0059D1
Tritanopia (blue-blind)
#6A587F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e23d4;
/* rgb */ color: rgb(126, 35, 212);
/* oklch */ color: oklch(50.1% 0.242 300.5);
Tailwind
colors: {
  custom: {
    50: '#ac6ce2',
    500: '#7e23d4',
    950: '#000000',
  },
}
SCSS
$custom: #7e23d4;
$custom-light: #ac6ce2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e23d4",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 212
  },
  "hsl": {
    "h": 270.847,
    "s": 71.66,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50146,
    "c": 0.24166,
    "h": 300.5
  },
  "luminance": 0.10391
}

Semantic roles & 50–950 ramp

primary
#7E23D4
secondary
#A8D47E
accent
#EE3991
background
#FBF6FE
surface
#F6ECFC
border
#D0C7D5
text
#110816
muted
#807A84

Preview Lab

Preview with #7E23D4

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

Preview Lab → · Contrast checker → · Palette generator →

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