#7D308D#7D308D

#7D308D is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.8% C 0.160 H 320.3°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#7D308D
RGBrgb(125, 48, 141)
HSLhsl(290, 49%, 37%)
HSVhsv(290, 66%, 55%)
CMYKcmyk(11.3%, 66%, 0%, 44.7%)
CIE-LABlab(34.80, 47.11, -36.59)
CIE-LCHlch(34.80, 59.65, 322.16°)
OKLaboklab(45.82% 0.1232 -0.1022)
OKLCHoklch(45.82% 0.16 320.3)
XYZxyz(14.3215, 8.3977, 26.0607)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D308D #408D30
analogous
#4E308D #7D308D #8D306F
triadic
#7D308D #8D7D30 #308D7D
tetradic
#7D308D #8D4E30 #408D30 #306F8D
square
#7D308D #8D4E30 #408D30 #306F8D
split-complementary
#7D308D #6F8D30 #308D4E
monochromatic
#2C1132 #55205F #7D308D #A540BB #BC6BCD

Accessibility & contrast

On white

7.84
#7D308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7D308D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D308D
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D308D#FFFFFF#000000##FFFFFF
##7D308D1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164C90
Deuteranopia (green-blind)
#38558B
Tritanopia (blue-blind)
#7E405A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d308d;
/* rgb */ color: rgb(125, 48, 141);
/* oklch */ color: oklch(45.8% 0.160 320.3);
Tailwind
colors: {
  custom: {
    50: '#a56eaf',
    500: '#7d308d',
    950: '#000000',
  },
}
SCSS
$custom: #7d308d;
$custom-light: #a56eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d308d",
  "rgb": {
    "r": 125,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 289.677,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45822,
    "c": 0.16007,
    "h": 320.3
  },
  "luminance": 0.08397
}

Semantic roles & 50–950 ramp

primary
#7D308D
secondary
#73B465
accent
#D94F67
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D308D

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

Preview Lab → · Contrast checker → · Palette generator →

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