#7E2F9F#7E2F9F

#7E2F9F is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.0% C 0.179 H 314.1°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#7E2F9F
RGBrgb(126, 47, 159)
HSLhsl(282, 54%, 40%)
HSVhsv(282, 70%, 62%)
CMYKcmyk(20.8%, 70.4%, 0%, 37.6%)
CIE-LABlab(35.93, 51.53, -45.74)
CIE-LCHlch(35.93, 68.90, 318.41°)
OKLaboklab(47.03% 0.1248 -0.1289)
OKLCHoklch(47.03% 0.179 314.1)
XYZxyz(15.8776, 8.9724, 33.6896)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2F9F #509F2F
analogous
#462F9F #7E2F9F #9F2F88
triadic
#7E2F9F #9F7E2F #2F9F7E
tetradic
#7E2F9F #9F462F #509F2F #2F889F
square
#7E2F9F #9F462F #509F2F #2F889F
split-complementary
#7E2F9F #889F2F #2F9F46
monochromatic
#331341 #592170 #7E2F9F #A144C8 #B873D6

Accessibility & contrast

On white

7.52
#7E2F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7E2F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2F9F
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2F9F#FFFFFF#000000##FFFFFF
##7E2F9F1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A2
Deuteranopia (green-blind)
#29569C
Tritanopia (blue-blind)
#7B4663
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e2f9f;
/* rgb */ color: rgb(126, 47, 159);
/* oklch */ color: oklch(47.0% 0.179 314.1);
Tailwind
colors: {
  custom: {
    50: '#a76ebc',
    500: '#7e2f9f',
    950: '#000000',
  },
}
SCSS
$custom: #7e2f9f;
$custom-light: #a76ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2f9f",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 282.321,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47033,
    "c": 0.1794,
    "h": 314.1
  },
  "luminance": 0.08972
}

Semantic roles & 50–950 ramp

primary
#7E2F9F
secondary
#84BD6D
accent
#DE4A76
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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