#7E309C#7E309C

#7E309C is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.9% C 0.175 H 315.0°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#7E309C
RGBrgb(126, 48, 156)
HSLhsl(283, 53%, 40%)
HSVhsv(283, 69%, 61%)
CMYKcmyk(19.2%, 69.2%, 0%, 38.8%)
CIE-LABlab(35.89, 50.45, -43.99)
CIE-LCHlch(35.89, 66.94, 318.92°)
OKLaboklab(46.94% 0.124 -0.1238)
OKLCHoklch(46.94% 0.175 315)
XYZxyz(15.6609, 8.9504, 32.3487)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E309C #4E9C30
analogous
#48309C #7E309C #9C3084
triadic
#7E309C #9C7E30 #309C7E
tetradic
#7E309C #9C4830 #4E9C30 #30849C
square
#7E309C #9C4830 #4E9C30 #30849C
split-complementary
#7E309C #849C30 #309C48
monochromatic
#32133E #58226D #7E309C #A144C5 #B973D4

Accessibility & contrast

On white

7.53
#7E309C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7E309C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E309C
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E309C#FFFFFF#000000##FFFFFF
##7E309C1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509F
Deuteranopia (green-blind)
#2D569A
Tritanopia (blue-blind)
#7C4562
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e309c;
/* rgb */ color: rgb(126, 48, 156);
/* oklch */ color: oklch(46.9% 0.175 315.0);
Tailwind
colors: {
  custom: {
    50: '#a76fba',
    500: '#7e309c',
    950: '#000000',
  },
}
SCSS
$custom: #7e309c;
$custom-light: #a76fba;
$custom-dark: #000000;
JSON
{
  "hex": "#7e309c",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 156
  },
  "hsl": {
    "h": 283.333,
    "s": 52.941,
    "l": 40
  },
  "oklch": {
    "l": 0.46939,
    "c": 0.17516,
    "h": 315
  },
  "luminance": 0.0895
}

Semantic roles & 50–950 ramp

primary
#7E309C
secondary
#82BC6C
accent
#DC4B74
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E309C

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

Preview Lab → · Contrast checker → · Palette generator →

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