#7E339B#7E339B

#7E339B is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.2% C 0.170 H 315.1°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#7E339B
RGBrgb(126, 51, 155)
HSLhsl(283, 50%, 40%)
HSVhsv(283, 67%, 61%)
CMYKcmyk(18.7%, 67.1%, 0%, 39.2%)
CIE-LABlab(36.31, 48.89, -42.71)
CIE-LCHlch(36.31, 64.91, 318.86°)
OKLaboklab(47.22% 0.1206 -0.12)
OKLCHoklch(47.22% 0.17 315.1)
XYZxyz(15.7035, 9.1704, 31.9468)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E339B #509B33
analogous
#4A339B #7E339B #9B3384
triadic
#7E339B #9B7E33 #339B7E
tetradic
#7E339B #9B4A33 #509B33 #33849B
square
#7E339B #9B4A33 #509B33 #33849B
split-complementary
#7E339B #849B33 #339B4A
monochromatic
#33153F #59246D #7E339B #A148C3 #B876D2

Accessibility & contrast

On white

7.41
#7E339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7E339B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E339B
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E339B#FFFFFF#000000##FFFFFF
##7E339B1.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00519E
Deuteranopia (green-blind)
#315799
Tritanopia (blue-blind)
#7C4763
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e339b;
/* rgb */ color: rgb(126, 51, 155);
/* oklch */ color: oklch(47.2% 0.170 315.1);
Tailwind
colors: {
  custom: {
    50: '#a770b9',
    500: '#7e339b',
    950: '#000000',
  },
}
SCSS
$custom: #7e339b;
$custom-light: #a770b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e339b",
  "rgb": {
    "r": 126,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 283.269,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47221,
    "c": 0.17012,
    "h": 315.1
  },
  "luminance": 0.0917
}

Semantic roles & 50–950 ramp

primary
#7E339B
secondary
#84BA6F
accent
#DA4E75
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7E339B

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

Preview Lab → · Contrast checker → · Palette generator →

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