#7D338E#7D338E

#7D338E is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.3% C 0.157 H 319.7°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#7D338E
RGBrgb(125, 51, 142)
HSLhsl(289, 47%, 38%)
HSVhsv(289, 64%, 56%)
CMYKcmyk(12%, 64.1%, 0%, 44.3%)
CIE-LABlab(35.36, 45.91, -36.31)
CIE-LCHlch(35.36, 58.53, 321.66°)
OKLaboklab(46.25% 0.1195 -0.1013)
OKLCHoklch(46.25% 0.157 319.7)
XYZxyz(14.5231, 8.6813, 26.4966)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D338E #448E33
analogous
#4F338E #7D338E #8E3371
triadic
#7D338E #8E7D33 #338E7D
tetradic
#7D338E #8E4F33 #448E33 #33718E
square
#7D338E #8E4F33 #448E33 #33718E
split-complementary
#7D338E #718E33 #338E4F
monochromatic
#2E1334 #552361 #7D338E #A543BB #BA70CC

Accessibility & contrast

On white

7.67
#7D338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7D338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D338E
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D338E#FFFFFF#000000##FFFFFF
##7D338E1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4E91
Deuteranopia (green-blind)
#3A568C
Tritanopia (blue-blind)
#7D425C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7d338e;
/* rgb */ color: rgb(125, 51, 142);
/* oklch */ color: oklch(46.3% 0.157 319.7);
Tailwind
colors: {
  custom: {
    50: '#a570af',
    500: '#7d338e',
    950: '#000000',
  },
}
SCSS
$custom: #7d338e;
$custom-light: #a570af;
$custom-dark: #000000;
JSON
{
  "hex": "#7d338e",
  "rgb": {
    "r": 125,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 288.791,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4625,
    "c": 0.15669,
    "h": 319.7
  },
  "luminance": 0.08681
}

Semantic roles & 50–950 ramp

primary
#7D338E
secondary
#77B469
accent
#D7516A
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7D338E

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

Preview Lab → · Contrast checker → · Palette generator →

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