#7D339E#7D339E

#7D339E is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.3% C 0.173 H 313.6°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#7D339E
RGBrgb(125, 51, 158)
HSLhsl(281, 51%, 41%)
HSVhsv(281, 68%, 62%)
CMYKcmyk(20.9%, 67.7%, 0%, 38%)
CIE-LABlab(36.36, 49.30, -44.45)
CIE-LCHlch(36.36, 66.38, 317.96°)
OKLaboklab(47.29% 0.1191 -0.1252)
OKLCHoklch(47.29% 0.173 313.6)
XYZxyz(15.8118, 9.1967, 33.2833)
Luminance0.0920 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D339E #549E33
analogous
#47339E #7D339E #9E3389
triadic
#7D339E #9E7D33 #339E7D
tetradic
#7D339E #9E4733 #549E33 #33899E
square
#7D339E #9E4733 #549E33 #33899E
split-complementary
#7D339E #899E33 #339E47
monochromatic
#341541 #582470 #7D339E #9F4AC4 #B778D3

Accessibility & contrast

On white

7.40
#7D339E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7D339E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D339E
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D339E#FFFFFF#000000##FFFFFF
##7D339E1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A1
Deuteranopia (green-blind)
#2D579C
Tritanopia (blue-blind)
#7A4864
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7d339e;
/* rgb */ color: rgb(125, 51, 158);
/* oklch */ color: oklch(47.3% 0.173 313.6);
Tailwind
colors: {
  custom: {
    50: '#a670bb',
    500: '#7d339e',
    950: '#000000',
  },
}
SCSS
$custom: #7d339e;
$custom-light: #a670bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d339e",
  "rgb": {
    "r": 125,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 281.495,
    "s": 51.196,
    "l": 40.98
  },
  "oklch": {
    "l": 0.4729,
    "c": 0.17276,
    "h": 313.6
  },
  "luminance": 0.09196
}

Semantic roles & 50–950 ramp

primary
#7D339E
secondary
#88BC71
accent
#DB4D79
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7D339E

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

Preview Lab → · Contrast checker → · Palette generator →

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