#7E239A#7E239A

#7E239A is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.5% C 0.189 H 316.7°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#7E239A
RGBrgb(126, 35, 154)
HSLhsl(286, 63%, 37%)
HSVhsv(286, 77%, 60%)
CMYKcmyk(18.2%, 77.3%, 0%, 39.6%)
CIE-LABlab(33.92, 55.24, -45.94)
CIE-LCHlch(33.92, 71.84, 320.25°)
OKLaboklab(45.5% 0.1374 -0.1294)
OKLCHoklch(45.5% 0.189 316.7)
XYZxyz(15.0371, 7.9714, 31.3121)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E239A #3F9A23
analogous
#42239A #7E239A #9A237B
triadic
#7E239A #9A7E23 #239A7E
tetradic
#7E239A #9A4223 #3F9A23 #237B9A
square
#7E239A #9A4223 #3F9A23 #237B9A
split-complementary
#7E239A #7B9A23 #239A42
monochromatic
#2C0C36 #551868 #7E239A #A72ECC #BD5DDA

Accessibility & contrast

On white

8.09
#7E239A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7E239A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E239A
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E239A#FFFFFF#000000##FFFFFF
##7E239A1.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9D
Deuteranopia (green-blind)
#245297
Tritanopia (blue-blind)
#7C3D5E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e239a;
/* rgb */ color: rgb(126, 35, 154);
/* oklch */ color: oklch(45.5% 0.189 316.7);
Tailwind
colors: {
  custom: {
    50: '#a769b8',
    500: '#7e239a',
    950: '#000000',
  },
}
SCSS
$custom: #7e239a;
$custom-light: #a769b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e239a",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 154
  },
  "hsl": {
    "h": 285.882,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45498,
    "c": 0.18874,
    "h": 316.7
  },
  "luminance": 0.07971
}

Semantic roles & 50–950 ramp

primary
#7E239A
secondary
#72BF5A
accent
#E64268
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E239A

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

Preview Lab → · Contrast checker → · Palette generator →

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