#7E309F#7E309F

#7E309F is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.1% C 0.178 H 314.0°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#7E309F
RGBrgb(126, 48, 159)
HSLhsl(282, 54%, 41%)
HSVhsv(282, 70%, 62%)
CMYKcmyk(20.8%, 69.8%, 0%, 37.6%)
CIE-LABlab(36.09, 51.09, -45.49)
CIE-LCHlch(36.09, 68.41, 318.32°)
OKLaboklab(47.14% 0.1237 -0.1281)
OKLCHoklch(47.14% 0.178 314)
XYZxyz(15.9181, 9.0532, 33.7031)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E309F #519F30
analogous
#46309F #7E309F #9F3088
triadic
#7E309F #9F7E30 #309F7E
tetradic
#7E309F #9F4630 #519F30 #30889F
square
#7E309F #9F4630 #519F30 #30889F
split-complementary
#7E309F #889F30 #309F46
monochromatic
#331441 #592270 #7E309F #A045C7 #B874D5

Accessibility & contrast

On white

7.47
#7E309F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7E309F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E309F
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E309F#FFFFFF#000000##FFFFFF
##7E309F1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A2
Deuteranopia (green-blind)
#2A579C
Tritanopia (blue-blind)
#7B4764
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e309f;
/* rgb */ color: rgb(126, 48, 159);
/* oklch */ color: oklch(47.1% 0.178 314.0);
Tailwind
colors: {
  custom: {
    50: '#a76fbc',
    500: '#7e309f',
    950: '#000000',
  },
}
SCSS
$custom: #7e309f;
$custom-light: #a76fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e309f",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 282.162,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47144,
    "c": 0.17812,
    "h": 314
  },
  "luminance": 0.09053
}

Semantic roles & 50–950 ramp

primary
#7E309F
secondary
#85BD6E
accent
#DD4B76
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E309F

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

Preview Lab → · Contrast checker → · Palette generator →

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