#7D308C#7D308C

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

Color values

HEX#7D308C
RGBrgb(125, 48, 140)
HSLhsl(290, 49%, 37%)
HSVhsv(290, 66%, 55%)
CMYKcmyk(10.7%, 65.7%, 0%, 45.1%)
CIE-LABlab(34.74, 46.91, -36.07)
CIE-LCHlch(34.74, 59.18, 322.44°)
OKLaboklab(45.76% 0.1232 -0.1006)
OKLCHoklch(45.76% 0.159 320.8)
XYZxyz(14.2475, 8.3680, 25.6706)
Luminance0.0837 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D308C #3F8C30
analogous
#4F308C #7D308C #8C306D
triadic
#7D308C #8C7D30 #308C7D
tetradic
#7D308C #8C4F30 #3F8C30 #306D8C
square
#7D308C #8C4F30 #3F8C30 #306D8C
split-complementary
#7D308C #6D8C30 #308C4F
monochromatic
#2C1131 #54205E #7D308C #A640BA #BC6ACC

Accessibility & contrast

On white

7.86
#7D308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7D308C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D308C
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D308C#FFFFFF#000000##FFFFFF
##7D308C1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174C8F
Deuteranopia (green-blind)
#39558A
Tritanopia (blue-blind)
#7E3F5A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d308c;
/* rgb */ color: rgb(125, 48, 140);
/* oklch */ color: oklch(45.8% 0.159 320.8);
Tailwind
colors: {
  custom: {
    50: '#a56eae',
    500: '#7d308c',
    950: '#000000',
  },
}
SCSS
$custom: #7d308c;
$custom-light: #a56eae;
$custom-dark: #000000;
JSON
{
  "hex": "#7d308c",
  "rgb": {
    "r": 125,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 290.217,
    "s": 48.936,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45759,
    "c": 0.1591,
    "h": 320.8
  },
  "luminance": 0.08367
}

Semantic roles & 50–950 ramp

primary
#7D308C
secondary
#71B364
accent
#D84F66
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D308C

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

Preview Lab → · Contrast checker → · Palette generator →

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