#7E2F8B#7E2F8B

#7E2F8B is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.7% C 0.160 H 321.7°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#7E2F8B
RGBrgb(126, 47, 139)
HSLhsl(292, 49%, 36%)
HSVhsv(292, 66%, 55%)
CMYKcmyk(9.4%, 66.2%, 0%, 45.5%)
CIE-LABlab(34.67, 47.41, -35.56)
CIE-LCHlch(34.67, 59.27, 323.13°)
OKLaboklab(45.72% 0.1257 -0.0991)
OKLCHoklch(45.72% 0.16 321.7)
XYZxyz(14.2804, 8.3335, 25.2774)
Luminance0.0833 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2F8B #3C8B2F
analogous
#502F8B #7E2F8B #8B2F6A
triadic
#7E2F8B #8B7E2F #2F8B7E
tetradic
#7E2F8B #8B502F #3C8B2F #2F6A8B
square
#7E2F8B #8B502F #3C8B2F #2F6A8B
split-complementary
#7E2F8B #6A8B2F #2F8B50
monochromatic
#2B1030 #55205D #7E2F8B #A73EB9 #BE68CC

Accessibility & contrast

On white

7.88
#7E2F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7E2F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2F8B
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2F8B#FFFFFF#000000##FFFFFF
##7E2F8B1.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174C8E
Deuteranopia (green-blind)
#3A5589
Tritanopia (blue-blind)
#7F3E59
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e2f8b;
/* rgb */ color: rgb(126, 47, 139);
/* oklch */ color: oklch(45.7% 0.160 321.7);
Tailwind
colors: {
  custom: {
    50: '#a66ead',
    500: '#7e2f8b',
    950: '#000000',
  },
}
SCSS
$custom: #7e2f8b;
$custom-light: #a66ead;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2f8b",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 291.522,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45721,
    "c": 0.16006,
    "h": 321.7
  },
  "luminance": 0.08333
}

Semantic roles & 50–950 ramp

primary
#7E2F8B
secondary
#6EB363
accent
#D94F62
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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