#7E2698#7E2698

#7E2698 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.6% C 0.184 H 317.2°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#7E2698
RGBrgb(126, 38, 152)
HSLhsl(286, 60%, 37%)
HSVhsv(286, 75%, 60%)
CMYKcmyk(17.1%, 75%, 0%, 40.4%)
CIE-LABlab(34.17, 53.74, -44.32)
CIE-LCHlch(34.17, 69.66, 320.48°)
OKLaboklab(45.63% 0.1349 -0.1247)
OKLCHoklch(45.63% 0.184 317.2)
XYZxyz(14.9640, 8.0895, 30.4729)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2698 #409826
analogous
#452698 #7E2698 #982679
triadic
#7E2698 #987E26 #26987E
tetradic
#7E2698 #984526 #409826 #267998
square
#7E2698 #984526 #409826 #267998
split-complementary
#7E2698 #799826 #269845
monochromatic
#2D0E36 #551A67 #7E2698 #A732C9 #BC61D7

Accessibility & contrast

On white

8.02
#7E2698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7E2698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2698
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2698#FFFFFF#000000##FFFFFF
##7E26981.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#295395
Tritanopia (blue-blind)
#7D3E5D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2698;
/* rgb */ color: rgb(126, 38, 152);
/* oklch */ color: oklch(45.6% 0.184 317.2);
Tailwind
colors: {
  custom: {
    50: '#a76ab7',
    500: '#7e2698',
    950: '#000000',
  },
}
SCSS
$custom: #7e2698;
$custom-light: #a76ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2698",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 152
  },
  "hsl": {
    "h": 286.316,
    "s": 60,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45628,
    "c": 0.18366,
    "h": 317.2
  },
  "luminance": 0.08089
}

Semantic roles & 50–950 ramp

primary
#7E2698
secondary
#73BD5D
accent
#E34569
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2698

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

Preview Lab → · Contrast checker → · Palette generator →

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