#7E309A#7E309A

#7E309A is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.8% C 0.173 H 315.8°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#7E309A
RGBrgb(126, 48, 154)
HSLhsl(284, 52%, 40%)
HSVhsv(284, 69%, 60%)
CMYKcmyk(18.2%, 68.8%, 0%, 39.6%)
CIE-LABlab(35.76, 50.03, -42.99)
CIE-LCHlch(35.76, 65.96, 319.33°)
OKLaboklab(46.8% 0.1241 -0.1208)
OKLCHoklch(46.8% 0.173 315.8)
XYZxyz(15.4930, 8.8832, 31.4641)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E309A #4C9A30
analogous
#49309A #7E309A #9A3081
triadic
#7E309A #9A7E30 #309A7E
tetradic
#7E309A #9A4930 #4C9A30 #30819A
square
#7E309A #9A4930 #4C9A30 #30819A
split-complementary
#7E309A #819A30 #309A49
monochromatic
#32133D #58216B #7E309A #A243C4 #B972D3

Accessibility & contrast

On white

7.56
#7E309A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7E309A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E309A
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E309A#FFFFFF#000000##FFFFFF
##7E309A1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9D
Deuteranopia (green-blind)
#2F5698
Tritanopia (blue-blind)
#7C4561
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e309a;
/* rgb */ color: rgb(126, 48, 154);
/* oklch */ color: oklch(46.8% 0.173 315.8);
Tailwind
colors: {
  custom: {
    50: '#a76fb8',
    500: '#7e309a',
    950: '#000000',
  },
}
SCSS
$custom: #7e309a;
$custom-light: #a76fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e309a",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 154
  },
  "hsl": {
    "h": 284.151,
    "s": 52.475,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46804,
    "c": 0.17319,
    "h": 315.8
  },
  "luminance": 0.08883
}

Semantic roles & 50–950 ramp

primary
#7E309A
secondary
#80BB6B
accent
#DC4C72
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7E309A

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

Preview Lab → · Contrast checker → · Palette generator →

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