#7D308F#7D308F

#7D308F is a mid, vivid purple. Relative luminance 0.085; OKLCH L 45.9% C 0.162 H 319.5°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#7D308F
RGBrgb(125, 48, 143)
HSLhsl(289, 50%, 37%)
HSVhsv(289, 66%, 56%)
CMYKcmyk(12.6%, 66.4%, 0%, 43.9%)
CIE-LABlab(34.92, 47.52, -37.63)
CIE-LCHlch(34.92, 60.61, 321.62°)
OKLaboklab(45.95% 0.1232 -0.1052)
OKLCHoklch(45.95% 0.162 319.5)
XYZxyz(14.4717, 8.4577, 26.8515)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D308F #428F30
analogous
#4E308F #7D308F #8F3071
triadic
#7D308F #8F7D30 #308F7D
tetradic
#7D308F #8F4E30 #428F30 #30718F
square
#7D308F #8F4E30 #428F30 #30718F
split-complementary
#7D308F #718F30 #308F4E
monochromatic
#2D1133 #552161 #7D308F #A53FBD #BB6CCE

Accessibility & contrast

On white

7.80
#7D308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7D308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D308F
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D308F#FFFFFF#000000##FFFFFF
##7D308F1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124D92
Deuteranopia (green-blind)
#37558D
Tritanopia (blue-blind)
#7D405B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d308f;
/* rgb */ color: rgb(125, 48, 143);
/* oklch */ color: oklch(45.9% 0.162 319.5);
Tailwind
colors: {
  custom: {
    50: '#a66eb0',
    500: '#7d308f',
    950: '#000000',
  },
}
SCSS
$custom: #7d308f;
$custom-light: #a66eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d308f",
  "rgb": {
    "r": 125,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 288.632,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45948,
    "c": 0.16201,
    "h": 319.5
  },
  "luminance": 0.08457
}

Semantic roles & 50–950 ramp

primary
#7D308F
secondary
#75B566
accent
#D94F69
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7D308F

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

Preview Lab → · Contrast checker → · Palette generator →

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