#7E239D#7E239D

#7E239D is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.7% C 0.191 H 315.7°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#7E239D
RGBrgb(126, 35, 157)
HSLhsl(285, 64%, 38%)
HSVhsv(285, 78%, 62%)
CMYKcmyk(19.7%, 77.7%, 0%, 38.4%)
CIE-LABlab(34.13, 55.84, -47.42)
CIE-LCHlch(34.13, 73.26, 319.66°)
OKLaboklab(45.71% 0.137 -0.1337)
OKLCHoklch(45.71% 0.191 315.7)
XYZxyz(15.2900, 8.0726, 32.6445)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E239D #429D23
analogous
#41239D #7E239D #9D237F
triadic
#7E239D #9D7E23 #239D7E
tetradic
#7E239D #9D4123 #429D23 #237F9D
square
#7E239D #9D4123 #429D23 #237F9D
split-complementary
#7E239D #7F9D23 #239D41
monochromatic
#2E0D39 #56186B #7E239D #A62ECF #BC5FDB

Accessibility & contrast

On white

8.03
#7E239D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E239D
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E239D#FFFFFF#000000##FFFFFF
##7E239D1.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA0
Deuteranopia (green-blind)
#20539A
Tritanopia (blue-blind)
#7C3F5F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e239d;
/* rgb */ color: rgb(126, 35, 157);
/* oklch */ color: oklch(45.7% 0.191 315.7);
Tailwind
colors: {
  custom: {
    50: '#a769bb',
    500: '#7e239d',
    950: '#000000',
  },
}
SCSS
$custom: #7e239d;
$custom-light: #a769bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e239d",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 157
  },
  "hsl": {
    "h": 284.754,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45713,
    "c": 0.19143,
    "h": 315.7
  },
  "luminance": 0.08072
}

Semantic roles & 50–950 ramp

primary
#7E239D
secondary
#75C05C
accent
#E7416B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E239D

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

Preview Lab → · Contrast checker → · Palette generator →

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