#7E337E#7E337E

#7E337E is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.5% C 0.142 H 327.6°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#7E337E
RGBrgb(126, 51, 126)
HSLhsl(300, 42%, 35%)
HSVhsv(300, 60%, 49%)
CMYKcmyk(0%, 59.5%, 0%, 50.6%)
CIE-LABlab(34.62, 43.03, -27.58)
CIE-LCHlch(34.62, 51.11, 327.34°)
OKLaboklab(45.45% 0.1198 -0.076)
OKLCHoklch(45.45% 0.142 327.6)
XYZxyz(13.5537, 8.3105, 20.6248)
Luminance0.0831 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E337E #337E33
analogous
#59337E #7E337E #7E3359
triadic
#7E337E #7E7E33 #337E7E
tetradic
#7E337E #7E5933 #337E33 #33597E
square
#7E337E #7E5933 #337E33 #33597E
split-complementary
#7E337E #597E33 #337E59
monochromatic
#271027 #522152 #7E337E #AA45AA #C269C2

Accessibility & contrast

On white

7.89
#7E337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7E337E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E337E
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E337E#FFFFFF#000000##FFFFFF
##7E337E1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4B80
Deuteranopia (green-blind)
#44557C
Tritanopia (blue-blind)
#823C53
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e337e;
/* rgb */ color: rgb(126, 51, 126);
/* oklch */ color: oklch(45.5% 0.142 327.6);
Tailwind
colors: {
  custom: {
    50: '#a66fa3',
    500: '#7e337e',
    950: '#000000',
  },
}
SCSS
$custom: #7e337e;
$custom-light: #a66fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e337e",
  "rgb": {
    "r": 126,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 300,
    "s": 42.373,
    "l": 34.706
  },
  "oklch": {
    "l": 0.45452,
    "c": 0.14184,
    "h": 327.6
  },
  "luminance": 0.0831
}

Semantic roles & 50–950 ramp

primary
#7E337E
secondary
#63AA63
accent
#D25656
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10080F
muted
#7F7B7F

Preview Lab

Preview with #7E337E

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

Preview Lab → · Contrast checker → · Palette generator →

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