#7D398E#7D398E

#7D398E is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.0% C 0.147 H 319.2°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#7D398E
RGBrgb(125, 57, 142)
HSLhsl(288, 43%, 39%)
HSVhsv(288, 60%, 56%)
CMYKcmyk(12%, 59.9%, 0%, 44.3%)
CIE-LABlab(36.44, 42.97, -34.59)
CIE-LCHlch(36.44, 55.16, 321.16°)
OKLaboklab(47.03% 0.1116 -0.0964)
OKLCHoklch(47.03% 0.148 319.2)
XYZxyz(14.8024, 9.2398, 26.5897)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D398E #4A8E39
analogous
#53398E #7D398E #8E3975
triadic
#7D398E #8E7D39 #398E7D
tetradic
#7D398E #8E5339 #4A8E39 #39758E
square
#7D398E #8E5339 #4A8E39 #39758E
split-complementary
#7D398E #758E39 #398E53
monochromatic
#301637 #572762 #7D398E #A24DB7 #B978C9

Accessibility & contrast

On white

7.37
#7D398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7D398E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D398E
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D398E#FFFFFF#000000##FFFFFF
##7D398E1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255191
Deuteranopia (green-blind)
#3E588C
Tritanopia (blue-blind)
#7D465E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7d398e;
/* rgb */ color: rgb(125, 57, 142);
/* oklch */ color: oklch(47.0% 0.147 319.2);
Tailwind
colors: {
  custom: {
    50: '#a573af',
    500: '#7d398e',
    950: '#000000',
  },
}
SCSS
$custom: #7d398e;
$custom-light: #a573af;
$custom-dark: #000000;
JSON
{
  "hex": "#7d398e",
  "rgb": {
    "r": 125,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 288,
    "s": 42.714,
    "l": 39.02
  },
  "oklch": {
    "l": 0.47034,
    "c": 0.1475,
    "h": 319.2
  },
  "luminance": 0.09239
}

Semantic roles & 50–950 ramp

primary
#7D398E
secondary
#7EB271
accent
#D2556E
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7D398E

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

Preview Lab → · Contrast checker → · Palette generator →

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