#7E308C#7E308C

#7E308C is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.9% C 0.160 H 321.3°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#7E308C
RGBrgb(126, 48, 140)
HSLhsl(291, 49%, 37%)
HSVhsv(291, 66%, 55%)
CMYKcmyk(10%, 65.7%, 0%, 45.1%)
CIE-LABlab(34.89, 47.16, -35.82)
CIE-LCHlch(34.89, 59.22, 322.78°)
OKLaboklab(45.9% 0.1245 -0.0999)
OKLCHoklch(45.9% 0.16 321.3)
XYZxyz(14.3942, 8.4437, 25.6775)
Luminance0.0844 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E308C #3E8C30
analogous
#50308C #7E308C #8C306C
triadic
#7E308C #8C7E30 #308C7E
tetradic
#7E308C #8C5030 #3E8C30 #306C8C
square
#7E308C #8C5030 #3E8C30 #306C8C
split-complementary
#7E308C #6C8C30 #308C50
monochromatic
#2C1131 #55205E #7E308C #A740BA #BD6ACC

Accessibility & contrast

On white

7.81
#7E308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7E308C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E308C
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E308C#FFFFFF#000000##FFFFFF
##7E308C1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184C8F
Deuteranopia (green-blind)
#3A558A
Tritanopia (blue-blind)
#7F3F5A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e308c;
/* rgb */ color: rgb(126, 48, 140);
/* oklch */ color: oklch(45.9% 0.160 321.3);
Tailwind
colors: {
  custom: {
    50: '#a66eae',
    500: '#7e308c',
    950: '#000000',
  },
}
SCSS
$custom: #7e308c;
$custom-light: #a66eae;
$custom-dark: #000000;
JSON
{
  "hex": "#7e308c",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 290.87,
    "s": 48.936,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45901,
    "c": 0.15959,
    "h": 321.3
  },
  "luminance": 0.08443
}

Semantic roles & 50–950 ramp

primary
#7E308C
secondary
#70B364
accent
#D84F64
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7E308C

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

Preview Lab → · Contrast checker → · Palette generator →

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