#7E238E#7E238E

#7E238E is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.7% C 0.178 H 321.2°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#7E238E
RGBrgb(126, 35, 142)
HSLhsl(291, 60%, 35%)
HSVhsv(291, 75%, 56%)
CMYKcmyk(11.3%, 75.4%, 0%, 44.3%)
CIE-LABlab(33.12, 52.89, -39.89)
CIE-LCHlch(33.12, 66.25, 322.98°)
OKLaboklab(44.67% 0.1388 -0.1116)
OKLCHoklch(44.67% 0.178 321.2)
XYZxyz(14.0871, 7.5914, 26.3092)
Luminance0.0759 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E238E #338E23
analogous
#49238E #7E238E #8E2369
triadic
#7E238E #8E7E23 #238E7E
tetradic
#7E238E #8E4923 #338E23 #23698E
square
#7E238E #8E4923 #338E23 #23698E
split-complementary
#7E238E #698E23 #238E49
monochromatic
#270B2C #52175D #7E238E #AA2FBF #C256D5

Accessibility & contrast

On white

8.34
#7E238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7E238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E238E
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E238E#FFFFFF#000000##FFFFFF
##7E238E1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#30518C
Tritanopia (blue-blind)
#7F3857
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e238e;
/* rgb */ color: rgb(126, 35, 142);
/* oklch */ color: oklch(44.7% 0.178 321.2);
Tailwind
colors: {
  custom: {
    50: '#a768b0',
    500: '#7e238e',
    950: '#000000',
  },
}
SCSS
$custom: #7e238e;
$custom-light: #a768b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e238e",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 291.028,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44669,
    "c": 0.1781,
    "h": 321.2
  },
  "luminance": 0.07591
}

Semantic roles & 50–950 ramp

primary
#7E238E
secondary
#63B953
accent
#E4445C
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E238E

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

Preview Lab → · Contrast checker → · Palette generator →

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