#7D239D#7D239D

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

Color values

HEX#7D239D
RGBrgb(125, 35, 157)
HSLhsl(284, 64%, 38%)
HSVhsv(284, 78%, 62%)
CMYKcmyk(20.4%, 77.7%, 0%, 38.4%)
CIE-LABlab(33.98, 55.64, -47.68)
CIE-LCHlch(33.98, 73.28, 319.41°)
OKLaboklab(45.57% 0.1357 -0.1345)
OKLCHoklch(45.57% 0.191 315.2)
XYZxyz(15.1433, 7.9969, 32.6376)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D239D #439D23
analogous
#40239D #7D239D #9D2380
triadic
#7D239D #9D7D23 #239D7D
tetradic
#7D239D #9D4023 #439D23 #23809D
square
#7D239D #9D4023 #439D23 #23809D
split-complementary
#7D239D #809D23 #239D40
monochromatic
#2D0D39 #55186B #7D239D #A52ECF #BB5FDB

Accessibility & contrast

On white

8.08
#7D239D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D239D
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D239D#FFFFFF#000000##FFFFFF
##7D239D1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA0
Deuteranopia (green-blind)
#1E529A
Tritanopia (blue-blind)
#7A3F5F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7d239d;
/* rgb */ color: rgb(125, 35, 157);
/* oklch */ color: oklch(45.6% 0.191 315.2);
Tailwind
colors: {
  custom: {
    50: '#a769bb',
    500: '#7d239d',
    950: '#000000',
  },
}
SCSS
$custom: #7d239d;
$custom-light: #a769bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d239d",
  "rgb": {
    "r": 125,
    "g": 35,
    "b": 157
  },
  "hsl": {
    "h": 284.262,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4557,
    "c": 0.19108,
    "h": 315.2
  },
  "luminance": 0.07996
}

Semantic roles & 50–950 ramp

primary
#7D239D
secondary
#76C05C
accent
#E7416D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D239D

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

Preview Lab → · Contrast checker → · Palette generator →

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