#7E2398#7E2398

#7E2398 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.187 H 317.4°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#7E2398
RGBrgb(126, 35, 152)
HSLhsl(287, 63%, 37%)
HSVhsv(287, 77%, 60%)
CMYKcmyk(17.1%, 77%, 0%, 40.4%)
CIE-LABlab(33.78, 54.84, -44.94)
CIE-LCHlch(33.78, 70.90, 320.66°)
OKLaboklab(45.36% 0.1377 -0.1265)
OKLCHoklch(45.36% 0.187 317.4)
XYZxyz(14.8719, 7.9053, 30.4422)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2398 #3D9823
analogous
#442398 #7E2398 #982378
triadic
#7E2398 #987E23 #23987E
tetradic
#7E2398 #984423 #3D9823 #237898
square
#7E2398 #984423 #3D9823 #237898
split-complementary
#7E2398 #789823 #239844
monochromatic
#2C0C35 #551866 #7E2398 #A72ECA #BE5CD9

Accessibility & contrast

On white

8.14
#7E2398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7E2398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2398
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2398#FFFFFF#000000##FFFFFF
##7E23981.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#265295
Tritanopia (blue-blind)
#7D3C5C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2398;
/* rgb */ color: rgb(126, 35, 152);
/* oklch */ color: oklch(45.4% 0.187 317.4);
Tailwind
colors: {
  custom: {
    50: '#a768b7',
    500: '#7e2398',
    950: '#000000',
  },
}
SCSS
$custom: #7e2398;
$custom-light: #a768b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2398",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 286.667,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45356,
    "c": 0.18695,
    "h": 317.4
  },
  "luminance": 0.07905
}

Semantic roles & 50–950 ramp

primary
#7E2398
secondary
#6FBE59
accent
#E64266
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2398

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

Preview Lab → · Contrast checker → · Palette generator →

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