#7D338C#7D338C

#7D338C is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.1% C 0.155 H 320.5°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#7D338C
RGBrgb(125, 51, 140)
HSLhsl(290, 47%, 37%)
HSVhsv(290, 64%, 55%)
CMYKcmyk(10.7%, 63.6%, 0%, 45.1%)
CIE-LABlab(35.25, 45.50, -35.27)
CIE-LCHlch(35.25, 57.57, 322.22°)
OKLaboklab(46.13% 0.1195 -0.0983)
OKLCHoklch(46.13% 0.155 320.5)
XYZxyz(14.3743, 8.6218, 25.7129)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D338C #428C33
analogous
#51338C #7D338C #8C336E
triadic
#7D338C #8C7D33 #338C7D
tetradic
#7D338C #8C5133 #428C33 #336E8C
square
#7D338C #8C5133 #428C33 #336E8C
split-complementary
#7D338C #6E8C33 #338C51
monochromatic
#2D1232 #55235F #7D338C #A543B9 #BB6FCB

Accessibility & contrast

On white

7.71
#7D338C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7D338C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D338C
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D338C#FFFFFF#000000##FFFFFF
##7D338C1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4E8F
Deuteranopia (green-blind)
#3B568A
Tritanopia (blue-blind)
#7E415B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7d338c;
/* rgb */ color: rgb(125, 51, 140);
/* oklch */ color: oklch(46.1% 0.155 320.5);
Tailwind
colors: {
  custom: {
    50: '#a570ae',
    500: '#7d338c',
    950: '#000000',
  },
}
SCSS
$custom: #7d338c;
$custom-light: #a570ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7d338c",
  "rgb": {
    "r": 125,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 289.888,
    "s": 46.597,
    "l": 37.451
  },
  "oklch": {
    "l": 0.46127,
    "c": 0.15471,
    "h": 320.5
  },
  "luminance": 0.08621
}

Semantic roles & 50–950 ramp

primary
#7D338C
secondary
#75B268
accent
#D65268
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7D338C

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

Preview Lab → · Contrast checker → · Palette generator →

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