#7D307E#7D307E

#7D307E is a dark, vivid purple. Relative luminance 0.080; OKLCH L 44.9% C 0.146 H 327.2°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#7D307E
RGBrgb(125, 48, 126)
HSLhsl(299, 45%, 34%)
HSVhsv(299, 62%, 49%)
CMYKcmyk(0.8%, 61.9%, 0%, 50.6%)
CIE-LABlab(33.94, 44.18, -28.66)
CIE-LCHlch(33.94, 52.66, 327.03°)
OKLaboklab(44.93% 0.1226 -0.0791)
OKLCHoklch(44.93% 0.146 327.2)
XYZxyz(13.2801, 7.9811, 20.5756)
Luminance0.0798 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D307E #317E30
analogous
#56307E #7D307E #7E3058
triadic
#7D307E #7E7D30 #307E7D
tetradic
#7D307E #7E5630 #317E30 #30587E
square
#7D307E #7E5630 #317E30 #30587E
split-complementary
#7D307E #587E30 #307E56
monochromatic
#250E25 #511F52 #7D307E #A941AA #C364C4

Accessibility & contrast

On white

8.09
#7D307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7D307E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D307E
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D307E#FFFFFF#000000##FFFFFF
##7D307E1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264980
Deuteranopia (green-blind)
#41537C
Tritanopia (blue-blind)
#813A52
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7d307e;
/* rgb */ color: rgb(125, 48, 126);
/* oklch */ color: oklch(44.9% 0.146 327.2);
Tailwind
colors: {
  custom: {
    50: '#a56ea4',
    500: '#7d307e',
    950: '#000000',
  },
}
SCSS
$custom: #7d307e;
$custom-light: #a56ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d307e",
  "rgb": {
    "r": 125,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 299.231,
    "s": 44.828,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44926,
    "c": 0.1459,
    "h": 327.2
  },
  "luminance": 0.0798
}

Semantic roles & 50–950 ramp

primary
#7D307E
secondary
#60AB5F
accent
#D55355
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7D307E

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

Preview Lab → · Contrast checker → · Palette generator →

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