#7E367F#7E367F

#7E367F is a mid, vivid purple. Relative luminance 0.086; OKLCH L 45.9% C 0.138 H 327.0°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#7E367F
RGBrgb(126, 54, 127)
HSLhsl(299, 40%, 35%)
HSVhsv(299, 57%, 50%)
CMYKcmyk(0.8%, 57.5%, 0%, 50.2%)
CIE-LABlab(35.22, 41.74, -27.27)
CIE-LCHlch(35.22, 49.86, 326.84°)
OKLaboklab(45.9% 0.1157 -0.0751)
OKLCHoklch(45.9% 0.138 327)
XYZxyz(13.7539, 8.6071, 21.0114)
Luminance0.0861 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E367F #377F36
analogous
#59367F #7E367F #7F365B
triadic
#7E367F #7F7E36 #367F7E
tetradic
#7E367F #7F5936 #377F36 #365B7F
square
#7E367F #7F5936 #377F36 #365B7F
split-complementary
#7E367F #5B7F36 #367F59
monochromatic
#291129 #532454 #7E367F #A948AA #C06EC1

Accessibility & contrast

On white

7.72
#7E367F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7E367F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E367F
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E367F#FFFFFF#000000##FFFFFF
##7E367F1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4D81
Deuteranopia (green-blind)
#45567D
Tritanopia (blue-blind)
#813F55
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e367f;
/* rgb */ color: rgb(126, 54, 127);
/* oklch */ color: oklch(45.9% 0.138 327.0);
Tailwind
colors: {
  custom: {
    50: '#a671a4',
    500: '#7e367f',
    950: '#000000',
  },
}
SCSS
$custom: #7e367f;
$custom-light: #a671a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e367f",
  "rgb": {
    "r": 126,
    "g": 54,
    "b": 127
  },
  "hsl": {
    "h": 299.178,
    "s": 40.331,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45904,
    "c": 0.13797,
    "h": 327
  },
  "luminance": 0.08606
}

Semantic roles & 50–950 ramp

primary
#7E367F
secondary
#68AA67
accent
#D05859
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#10080F
muted
#7F7B7F

Preview Lab

Preview with #7E367F

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

Preview Lab → · Contrast checker → · Palette generator →

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