#7E2F92#7E2F92

#7E2F92 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.167 H 318.9°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#7E2F92
RGBrgb(126, 47, 146)
HSLhsl(288, 51%, 38%)
HSVhsv(288, 68%, 57%)
CMYKcmyk(13.7%, 67.8%, 0%, 42.7%)
CIE-LABlab(35.09, 48.82, -39.18)
CIE-LCHlch(35.09, 62.60, 321.25°)
OKLaboklab(46.16% 0.1256 -0.1097)
OKLCHoklch(46.16% 0.167 318.9)
XYZxyz(14.8083, 8.5446, 28.0578)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2F92 #43922F
analogous
#4D2F92 #7E2F92 #922F74
triadic
#7E2F92 #927E2F #2F927E
tetradic
#7E2F92 #924D2F #43922F #2F7492
square
#7E2F92 #924D2F #43922F #2F7492
split-complementary
#7E2F92 #74922F #2F924D
monochromatic
#2E1135 #562064 #7E2F92 #A63EC0 #BB6CD0

Accessibility & contrast

On white

7.75
#7E2F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7E2F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2F92
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2F92#FFFFFF#000000##FFFFFF
##7E2F921.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094D95
Deuteranopia (green-blind)
#355590
Tritanopia (blue-blind)
#7E415C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e2f92;
/* rgb */ color: rgb(126, 47, 146);
/* oklch */ color: oklch(46.2% 0.167 318.9);
Tailwind
colors: {
  custom: {
    50: '#a66eb2',
    500: '#7e2f92',
    950: '#000000',
  },
}
SCSS
$custom: #7e2f92;
$custom-light: #a66eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2f92",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 146
  },
  "hsl": {
    "h": 287.879,
    "s": 51.295,
    "l": 37.843
  },
  "oklch": {
    "l": 0.46163,
    "c": 0.16676,
    "h": 318.9
  },
  "luminance": 0.08544
}

Semantic roles & 50–950 ramp

primary
#7E2F92
secondary
#76B766
accent
#DB4D6A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2F92

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

Preview Lab → · Contrast checker → · Palette generator →

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