#7E239C#7E239C

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

Color values

HEX#7E239C
RGBrgb(126, 35, 156)
HSLhsl(285, 63%, 37%)
HSVhsv(285, 78%, 61%)
CMYKcmyk(19.2%, 77.6%, 0%, 38.8%)
CIE-LABlab(34.06, 55.64, -46.93)
CIE-LCHlch(34.06, 72.79, 319.85°)
OKLaboklab(45.64% 0.1371 -0.1323)
OKLCHoklch(45.64% 0.191 316)
XYZxyz(15.2050, 8.0386, 32.1967)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E239C #419C23
analogous
#41239C #7E239C #9C237E
triadic
#7E239C #9C7E23 #239C7E
tetradic
#7E239C #9C4123 #419C23 #237E9C
square
#7E239C #9C4123 #419C23 #237E9C
split-complementary
#7E239C #7E9C23 #239C41
monochromatic
#2D0D38 #56186A #7E239C #A62ECE #BC5EDB

Accessibility & contrast

On white

8.05
#7E239C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7E239C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E239C
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E239C#FFFFFF#000000##FFFFFF
##7E239C1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9F
Deuteranopia (green-blind)
#215399
Tritanopia (blue-blind)
#7C3E5F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e239c;
/* rgb */ color: rgb(126, 35, 156);
/* oklch */ color: oklch(45.6% 0.191 316.0);
Tailwind
colors: {
  custom: {
    50: '#a769ba',
    500: '#7e239c',
    950: '#000000',
  },
}
SCSS
$custom: #7e239c;
$custom-light: #a769ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7e239c",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 156
  },
  "hsl": {
    "h": 285.124,
    "s": 63.351,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45641,
    "c": 0.19053,
    "h": 316
  },
  "luminance": 0.08038
}

Semantic roles & 50–950 ramp

primary
#7E239C
secondary
#74C05B
accent
#E6416A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E239C

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

Preview Lab → · Contrast checker → · Palette generator →

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