#7D239E#7D239E

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

Color values

HEX#7D239E
RGBrgb(125, 35, 158)
HSLhsl(284, 64%, 38%)
HSVhsv(284, 78%, 62%)
CMYKcmyk(20.9%, 77.8%, 0%, 38%)
CIE-LABlab(34.05, 55.85, -48.17)
CIE-LCHlch(34.05, 73.75, 319.22°)
OKLaboklab(45.64% 0.1355 -0.136)
OKLCHoklch(45.64% 0.192 314.9)
XYZxyz(15.2290, 8.0312, 33.0891)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D239E #449E23
analogous
#3F239E #7D239E #9E2382
triadic
#7D239E #9E7D23 #239E7D
tetradic
#7D239E #9E3F23 #449E23 #23829E
square
#7D239E #9E3F23 #449E23 #23829E
split-complementary
#7D239E #829E23 #239E3F
monochromatic
#2E0D3A #55186C #7D239E #A52ED0 #BA60DC

Accessibility & contrast

On white

8.06
#7D239E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D239E
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D239E#FFFFFF#000000##FFFFFF
##7D239E1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#1C529B
Tritanopia (blue-blind)
#7A3F60
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7d239e;
/* rgb */ color: rgb(125, 35, 158);
/* oklch */ color: oklch(45.6% 0.192 314.9);
Tailwind
colors: {
  custom: {
    50: '#a769bb',
    500: '#7d239e',
    950: '#000000',
  },
}
SCSS
$custom: #7d239e;
$custom-light: #a769bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d239e",
  "rgb": {
    "r": 125,
    "g": 35,
    "b": 158
  },
  "hsl": {
    "h": 283.902,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45643,
    "c": 0.19197,
    "h": 314.9
  },
  "luminance": 0.08031
}

Semantic roles & 50–950 ramp

primary
#7D239E
secondary
#77C15C
accent
#E7416E
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D239E

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

Preview Lab → · Contrast checker → · Palette generator →

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