#7E2F9D#7E2F9D

#7E2F9D is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.9% C 0.177 H 314.8°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#7E2F9D
RGBrgb(126, 47, 157)
HSLhsl(283, 54%, 40%)
HSVhsv(283, 70%, 62%)
CMYKcmyk(19.7%, 70.1%, 0%, 38.4%)
CIE-LABlab(35.80, 51.11, -44.74)
CIE-LCHlch(35.80, 67.92, 318.80°)
OKLaboklab(46.9% 0.125 -0.126)
OKLCHoklch(46.9% 0.177 314.8)
XYZxyz(15.7055, 8.9035, 32.7830)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2F9D #4E9D2F
analogous
#472F9D #7E2F9D #9D2F85
triadic
#7E2F9D #9D7E2F #2F9D7E
tetradic
#7E2F9D #9D472F #4E9D2F #2F859D
square
#7E2F9D #9D472F #4E9D2F #2F859D
split-complementary
#7E2F9D #859D2F #2F9D47
monochromatic
#32133F #58216E #7E2F9D #A143C7 #B972D5

Accessibility & contrast

On white

7.55
#7E2F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7E2F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2F9D
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2F9D#FFFFFF#000000##FFFFFF
##7E2F9D1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A0
Deuteranopia (green-blind)
#2B569A
Tritanopia (blue-blind)
#7B4562
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e2f9d;
/* rgb */ color: rgb(126, 47, 157);
/* oklch */ color: oklch(46.9% 0.177 314.8);
Tailwind
colors: {
  custom: {
    50: '#a76eba',
    500: '#7e2f9d',
    950: '#000000',
  },
}
SCSS
$custom: #7e2f9d;
$custom-light: #a76eba;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2f9d",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 283.091,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.46896,
    "c": 0.17745,
    "h": 314.8
  },
  "luminance": 0.08903
}

Semantic roles & 50–950 ramp

primary
#7E2F9D
secondary
#82BC6B
accent
#DD4B74
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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