#7E307D#7E307D

#7E307D is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.0% C 0.146 H 328.2°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#7E307D
RGBrgb(126, 48, 125)
HSLhsl(301, 45%, 34%)
HSVhsv(301, 62%, 49%)
CMYKcmyk(0%, 61.9%, 0.8%, 50.6%)
CIE-LABlab(34.05, 44.27, -27.86)
CIE-LCHlch(34.05, 52.30, 327.81°)
OKLaboklab(45.02% 0.1237 -0.0768)
OKLCHoklch(45.02% 0.146 328.2)
XYZxyz(13.3626, 8.0311, 20.2444)
Luminance0.0803 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E307D #307E31
analogous
#58307E #7E307D #7E3056
triadic
#7E307D #7D7E30 #307D7E
tetradic
#7E307D #7E5830 #307E31 #30567E
square
#7E307D #7E5830 #307E31 #30567E
split-complementary
#7E307D #567E30 #307E58
monochromatic
#250E25 #521F51 #7E307D #AA41A9 #C464C3

Accessibility & contrast

On white

8.06
#7E307D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7E307D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E307D
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E307D#FFFFFF#000000##FFFFFF
##7E307D1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28497F
Deuteranopia (green-blind)
#43547B
Tritanopia (blue-blind)
#823952
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e307d;
/* rgb */ color: rgb(126, 48, 125);
/* oklch */ color: oklch(45.0% 0.146 328.2);
Tailwind
colors: {
  custom: {
    50: '#a66ea3',
    500: '#7e307d',
    950: '#000000',
  },
}
SCSS
$custom: #7e307d;
$custom-light: #a66ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e307d",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 125
  },
  "hsl": {
    "h": 300.769,
    "s": 44.828,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45016,
    "c": 0.14558,
    "h": 328.2
  },
  "luminance": 0.0803
}

Semantic roles & 50–950 ramp

primary
#7E307D
secondary
#5FAB60
accent
#D55553
background
#FAF6FA
surface
#F4ECF3
border
#CEC7CD
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E307D

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

Preview Lab → · Contrast checker → · Palette generator →

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