#7D308B#7D308B

#7D308B is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.7% C 0.158 H 321.2°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#7D308B
RGBrgb(125, 48, 139)
HSLhsl(291, 49%, 37%)
HSVhsv(291, 65%, 55%)
CMYKcmyk(10.1%, 65.5%, 0%, 45.5%)
CIE-LABlab(34.68, 46.71, -35.55)
CIE-LCHlch(34.68, 58.70, 322.72°)
OKLaboklab(45.7% 0.1232 -0.0991)
OKLCHoklch(45.7% 0.158 321.2)
XYZxyz(14.1741, 8.3387, 25.2840)
Luminance0.0834 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D308B #3E8B30
analogous
#50308B #7D308B #8B306C
triadic
#7D308B #8B7D30 #308B7D
tetradic
#7D308B #8B5030 #3E8B30 #306C8B
square
#7D308B #8B5030 #3E8B30 #306C8B
split-complementary
#7D308B #6C8B30 #308B50
monochromatic
#2B1130 #54205E #7D308B #A640B8 #BC6ACC

Accessibility & contrast

On white

7.87
#7D308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D308B
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D308B#FFFFFF#000000##FFFFFF
##7D308B1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194C8E
Deuteranopia (green-blind)
#3A5489
Tritanopia (blue-blind)
#7E3F59
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d308b;
/* rgb */ color: rgb(125, 48, 139);
/* oklch */ color: oklch(45.7% 0.158 321.2);
Tailwind
colors: {
  custom: {
    50: '#a56ead',
    500: '#7d308b',
    950: '#000000',
  },
}
SCSS
$custom: #7d308b;
$custom-light: #a56ead;
$custom-dark: #000000;
JSON
{
  "hex": "#7d308b",
  "rgb": {
    "r": 125,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 290.769,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45697,
    "c": 0.15815,
    "h": 321.2
  },
  "luminance": 0.08338
}

Semantic roles & 50–950 ramp

primary
#7D308B
secondary
#70B364
accent
#D85065
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D308B

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

Preview Lab → · Contrast checker → · Palette generator →

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