#7E239B#7E239B

#7E239B is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.190 H 316.4°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#7E239B
RGBrgb(126, 35, 155)
HSLhsl(286, 63%, 37%)
HSVhsv(286, 77%, 61%)
CMYKcmyk(18.7%, 77.4%, 0%, 39.2%)
CIE-LABlab(33.99, 55.44, -46.43)
CIE-LCHlch(33.99, 72.31, 320.05°)
OKLaboklab(45.57% 0.1373 -0.1308)
OKLCHoklch(45.57% 0.19 316.4)
XYZxyz(15.1207, 8.0049, 31.7526)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E239B #409B23
analogous
#42239B #7E239B #9B237C
triadic
#7E239B #9B7E23 #239B7E
tetradic
#7E239B #9B4223 #409B23 #237C9B
square
#7E239B #9B4223 #409B23 #237C9B
split-complementary
#7E239B #7C9B23 #239B42
monochromatic
#2D0C37 #551869 #7E239B #A72ECD #BC5EDB

Accessibility & contrast

On white

8.07
#7E239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7E239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E239B
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E239B#FFFFFF#000000##FFFFFF
##7E239B1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9E
Deuteranopia (green-blind)
#225298
Tritanopia (blue-blind)
#7C3E5E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e239b;
/* rgb */ color: rgb(126, 35, 155);
/* oklch */ color: oklch(45.6% 0.190 316.4);
Tailwind
colors: {
  custom: {
    50: '#a769b9',
    500: '#7e239b',
    950: '#000000',
  },
}
SCSS
$custom: #7e239b;
$custom-light: #a769b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e239b",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 285.5,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45569,
    "c": 0.18964,
    "h": 316.4
  },
  "luminance": 0.08004
}

Semantic roles & 50–950 ramp

primary
#7E239B
secondary
#73BF5A
accent
#E64269
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E239B

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

Preview Lab → · Contrast checker → · Palette generator →

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