#7E308D#7E308D

#7E308D is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.0% C 0.161 H 320.8°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#7E308D
RGBrgb(126, 48, 141)
HSLhsl(290, 49%, 37%)
HSVhsv(290, 66%, 55%)
CMYKcmyk(10.6%, 66%, 0%, 44.7%)
CIE-LABlab(34.95, 47.36, -36.34)
CIE-LCHlch(34.95, 59.70, 322.50°)
OKLaboklab(45.96% 0.1245 -0.1014)
OKLCHoklch(45.96% 0.161 320.8)
XYZxyz(14.4683, 8.4733, 26.0676)
Luminance0.0847 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E308D #3F8D30
analogous
#50308D #7E308D #8D306D
triadic
#7E308D #8D7E30 #308D7E
tetradic
#7E308D #8D5030 #3F8D30 #306D8D
square
#7E308D #8D5030 #3F8D30 #306D8D
split-complementary
#7E308D #6D8D30 #308D50
monochromatic
#2C1132 #55205F #7E308D #A740BB #BD6BCD

Accessibility & contrast

On white

7.79
#7E308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E308D
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E308D#FFFFFF#000000##FFFFFF
##7E308D1.007.792.697.79
#FFFFFF7.791.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174D90
Deuteranopia (green-blind)
#39558B
Tritanopia (blue-blind)
#7F3F5A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e308d;
/* rgb */ color: rgb(126, 48, 141);
/* oklch */ color: oklch(46.0% 0.161 320.8);
Tailwind
colors: {
  custom: {
    50: '#a66eaf',
    500: '#7e308d',
    950: '#000000',
  },
}
SCSS
$custom: #7e308d;
$custom-light: #a66eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e308d",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 290.323,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45963,
    "c": 0.16055,
    "h": 320.8
  },
  "luminance": 0.08473
}

Semantic roles & 50–950 ramp

primary
#7E308D
secondary
#72B465
accent
#D94F65
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7E308D

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

Preview Lab → · Contrast checker → · Palette generator →

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