#7E309E#7E309E

#7E309E is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.1% C 0.177 H 314.3°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#7E309E
RGBrgb(126, 48, 158)
HSLhsl(283, 53%, 40%)
HSVhsv(283, 70%, 62%)
CMYKcmyk(20.3%, 69.6%, 0%, 38%)
CIE-LABlab(36.02, 50.88, -44.99)
CIE-LCHlch(36.02, 67.92, 318.52°)
OKLaboklab(47.08% 0.1238 -0.1267)
OKLCHoklch(47.08% 0.177 314.3)
XYZxyz(15.8317, 9.0187, 33.2479)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E309E #509E30
analogous
#47309E #7E309E #9E3087
triadic
#7E309E #9E7E30 #309E7E
tetradic
#7E309E #9E4730 #509E30 #30879E
square
#7E309E #9E4730 #509E30 #30879E
split-complementary
#7E309E #879E30 #309E47
monochromatic
#331340 #59226F #7E309E #A145C6 #B874D5

Accessibility & contrast

On white

7.49
#7E309E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E309E
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E309E#FFFFFF#000000##FFFFFF
##7E309E1.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e309e;
/* rgb */ color: rgb(126, 48, 158);
/* oklch */ color: oklch(47.1% 0.177 314.3);
Tailwind
colors: {
  custom: {
    50: '#a76fbb',
    500: '#7e309e',
    950: '#000000',
  },
}
SCSS
$custom: #7e309e;
$custom-light: #a76fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e309e",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 158
  },
  "hsl": {
    "h": 282.545,
    "s": 53.398,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47076,
    "c": 0.17713,
    "h": 314.3
  },
  "luminance": 0.09018
}

Semantic roles & 50–950 ramp

primary
#7E309E
secondary
#84BD6D
accent
#DD4B75
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E309E

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

Preview Lab → · Contrast checker → · Palette generator →

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