#7E239E#7E239E

#7E239E is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.192 H 315.3°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#7E239E
RGBrgb(126, 35, 158)
HSLhsl(284, 64%, 38%)
HSVhsv(284, 78%, 62%)
CMYKcmyk(20.3%, 77.8%, 0%, 38%)
CIE-LABlab(34.20, 56.04, -47.91)
CIE-LCHlch(34.20, 73.73, 319.47°)
OKLaboklab(45.79% 0.1368 -0.1352)
OKLCHoklch(45.79% 0.192 315.3)
XYZxyz(15.3758, 8.1069, 33.0960)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E239E #439E23
analogous
#40239E #7E239E #9E2381
triadic
#7E239E #9E7E23 #239E7E
tetradic
#7E239E #9E4023 #439E23 #23819E
square
#7E239E #9E4023 #439E23 #23819E
split-complementary
#7E239E #819E23 #239E40
monochromatic
#2E0D3A #56186C #7E239E #A62ED0 #BB60DC

Accessibility & contrast

On white

8.01
#7E239E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7E239E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E239E
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E239E#FFFFFF#000000##FFFFFF
##7E239E1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#1E539B
Tritanopia (blue-blind)
#7B3F60
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e239e;
/* rgb */ color: rgb(126, 35, 158);
/* oklch */ color: oklch(45.8% 0.192 315.3);
Tailwind
colors: {
  custom: {
    50: '#a869bb',
    500: '#7e239e',
    950: '#000000',
  },
}
SCSS
$custom: #7e239e;
$custom-light: #a869bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e239e",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 158
  },
  "hsl": {
    "h": 284.39,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45785,
    "c": 0.19232,
    "h": 315.3
  },
  "luminance": 0.08106
}

Semantic roles & 50–950 ramp

primary
#7E239E
secondary
#76C15C
accent
#E7416C
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E239E

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

Preview Lab → · Contrast checker → · Palette generator →

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