#7E308B#7E308B

#7E308B is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.8% C 0.159 H 321.7°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#7E308B
RGBrgb(126, 48, 139)
HSLhsl(291, 49%, 37%)
HSVhsv(291, 65%, 55%)
CMYKcmyk(9.4%, 65.5%, 0%, 45.5%)
CIE-LABlab(34.83, 46.96, -35.30)
CIE-LCHlch(34.83, 58.75, 323.07°)
OKLaboklab(45.84% 0.1245 -0.0984)
OKLCHoklch(45.84% 0.159 321.7)
XYZxyz(14.3208, 8.4143, 25.2909)
Luminance0.0841 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E308B #3D8B30
analogous
#51308B #7E308B #8B306B
triadic
#7E308B #8B7E30 #308B7E
tetradic
#7E308B #8B5130 #3D8B30 #306B8B
square
#7E308B #8B5130 #3D8B30 #306B8B
split-complementary
#7E308B #6B8B30 #308B51
monochromatic
#2C1130 #55205E #7E308B #A740B8 #BE6ACC

Accessibility & contrast

On white

7.83
#7E308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7E308B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E308B
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E308B#FFFFFF#000000##FFFFFF
##7E308B1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194C8E
Deuteranopia (green-blind)
#3B5589
Tritanopia (blue-blind)
#7F3F59
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e308b;
/* rgb */ color: rgb(126, 48, 139);
/* oklch */ color: oklch(45.8% 0.159 321.7);
Tailwind
colors: {
  custom: {
    50: '#a66ead',
    500: '#7e308b',
    950: '#000000',
  },
}
SCSS
$custom: #7e308b;
$custom-light: #a66ead;
$custom-dark: #000000;
JSON
{
  "hex": "#7e308b",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 291.429,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45839,
    "c": 0.15863,
    "h": 321.7
  },
  "luminance": 0.08414
}

Semantic roles & 50–950 ramp

primary
#7E308B
secondary
#6FB364
accent
#D85063
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7E308B

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

Preview Lab → · Contrast checker → · Palette generator →

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