#7E308F#7E308F

#7E308F is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.1% C 0.162 H 320.0°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#7E308F
RGBrgb(126, 48, 143)
HSLhsl(289, 50%, 37%)
HSVhsv(289, 66%, 56%)
CMYKcmyk(11.9%, 66.4%, 0%, 43.9%)
CIE-LABlab(35.07, 47.76, -37.38)
CIE-LCHlch(35.07, 60.65, 321.95°)
OKLaboklab(46.09% 0.1245 -0.1044)
OKLCHoklch(46.09% 0.162 320)
XYZxyz(14.6185, 8.5334, 26.8584)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E308F #418F30
analogous
#4E308F #7E308F #8F3071
triadic
#7E308F #8F7E30 #308F7E
tetradic
#7E308F #8F4E30 #418F30 #30718F
square
#7E308F #8F4E30 #418F30 #30718F
split-complementary
#7E308F #718F30 #308F4E
monochromatic
#2D1133 #562161 #7E308F #A63FBD #BC6CCE

Accessibility & contrast

On white

7.76
#7E308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7E308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E308F
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E308F#FFFFFF#000000##FFFFFF
##7E308F1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134D92
Deuteranopia (green-blind)
#38558D
Tritanopia (blue-blind)
#7F405B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e308f;
/* rgb */ color: rgb(126, 48, 143);
/* oklch */ color: oklch(46.1% 0.162 320.0);
Tailwind
colors: {
  custom: {
    50: '#a66eb0',
    500: '#7e308f',
    950: '#000000',
  },
}
SCSS
$custom: #7e308f;
$custom-light: #a66eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e308f",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 289.263,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.46088,
    "c": 0.16248,
    "h": 320
  },
  "luminance": 0.08533
}

Semantic roles & 50–950 ramp

primary
#7E308F
secondary
#74B566
accent
#D94F67
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7E308F

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

Preview Lab → · Contrast checker → · Palette generator →

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