#7D239B#7D239B

#7D239B is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.189 H 315.9°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#7D239B
RGBrgb(125, 35, 155)
HSLhsl(285, 63%, 37%)
HSVhsv(285, 77%, 61%)
CMYKcmyk(19.4%, 77.4%, 0%, 39.2%)
CIE-LABlab(33.84, 55.24, -46.70)
CIE-LCHlch(33.84, 72.33, 319.79°)
OKLaboklab(45.43% 0.136 -0.1316)
OKLCHoklch(45.43% 0.189 315.9)
XYZxyz(14.9739, 7.9292, 31.7457)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D239B #419B23
analogous
#41239B #7D239B #9B237D
triadic
#7D239B #9B7D23 #239B7D
tetradic
#7D239B #9B4123 #419B23 #237D9B
square
#7D239B #9B4123 #419B23 #237D9B
split-complementary
#7D239B #7D9B23 #239B41
monochromatic
#2C0C37 #551869 #7D239B #A52ECD #BB5EDB

Accessibility & contrast

On white

8.12
#7D239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7D239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D239B
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D239B#FFFFFF#000000##FFFFFF
##7D239B1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#215298
Tritanopia (blue-blind)
#7B3E5E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7d239b;
/* rgb */ color: rgb(125, 35, 155);
/* oklch */ color: oklch(45.4% 0.189 315.9);
Tailwind
colors: {
  custom: {
    50: '#a768b9',
    500: '#7d239b',
    950: '#000000',
  },
}
SCSS
$custom: #7d239b;
$custom-light: #a768b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d239b",
  "rgb": {
    "r": 125,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 285,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45426,
    "c": 0.18927,
    "h": 315.9
  },
  "luminance": 0.07929
}

Semantic roles & 50–950 ramp

primary
#7D239B
secondary
#74BF5A
accent
#E6426B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D239B

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

Preview Lab → · Contrast checker → · Palette generator →

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