#7E309D#7E309D

#7E309D is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.0% C 0.176 H 314.7°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#7E309D
RGBrgb(126, 48, 157)
HSLhsl(283, 53%, 40%)
HSVhsv(283, 69%, 62%)
CMYKcmyk(19.7%, 69.4%, 0%, 38.4%)
CIE-LABlab(35.95, 50.67, -44.49)
CIE-LCHlch(35.95, 67.43, 318.71°)
OKLaboklab(47.01% 0.1239 -0.1252)
OKLCHoklch(47.01% 0.176 314.7)
XYZxyz(15.7459, 8.9844, 32.7965)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E309D #4F9D30
analogous
#48309D #7E309D #9D3085
triadic
#7E309D #9D7E30 #309D7E
tetradic
#7E309D #9D4830 #4F9D30 #30859D
square
#7E309D #9D4830 #4F9D30 #30859D
split-complementary
#7E309D #859D30 #309D48
monochromatic
#33133F #58226E #7E309D #A144C6 #B973D4

Accessibility & contrast

On white

7.51
#7E309D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7E309D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E309D
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E309D#FFFFFF#000000##FFFFFF
##7E309D1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A0
Deuteranopia (green-blind)
#2C579B
Tritanopia (blue-blind)
#7B4663
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e309d;
/* rgb */ color: rgb(126, 48, 157);
/* oklch */ color: oklch(47.0% 0.176 314.7);
Tailwind
colors: {
  custom: {
    50: '#a76fba',
    500: '#7e309d',
    950: '#000000',
  },
}
SCSS
$custom: #7e309d;
$custom-light: #a76fba;
$custom-dark: #000000;
JSON
{
  "hex": "#7e309d",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 157
  },
  "hsl": {
    "h": 282.936,
    "s": 53.171,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47007,
    "c": 0.17615,
    "h": 314.7
  },
  "luminance": 0.08984
}

Semantic roles & 50–950 ramp

primary
#7E309D
secondary
#83BC6D
accent
#DD4B75
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E309D

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

Preview Lab → · Contrast checker → · Palette generator →

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