#7E2E8B#7E2E8B

#7E2E8B is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.6% C 0.161 H 321.8°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#7E2E8B
RGBrgb(126, 46, 139)
HSLhsl(292, 50%, 36%)
HSVhsv(292, 67%, 55%)
CMYKcmyk(9.4%, 66.9%, 0%, 45.5%)
CIE-LABlab(34.51, 47.86, -35.82)
CIE-LCHlch(34.51, 59.78, 323.19°)
OKLaboklab(45.61% 0.1269 -0.0998)
OKLCHoklch(45.61% 0.161 321.8)
XYZxyz(14.2409, 8.2544, 25.2642)
Luminance0.0825 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E8B #3B8B2E
analogous
#502E8B #7E2E8B #8B2E6A
triadic
#7E2E8B #8B7E2E #2E8B7E
tetradic
#7E2E8B #8B502E #3B8B2E #2E6A8B
square
#7E2E8B #8B502E #3B8B2E #2E6A8B
split-complementary
#7E2E8B #6A8B2E #2E8B50
monochromatic
#2B102F #541F5D #7E2E8B #A83DB9 #BE67CD

Accessibility & contrast

On white

7.92
#7E2E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7E2E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2E8B
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2E8B#FFFFFF#000000##FFFFFF
##7E2E8B1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154B8E
Deuteranopia (green-blind)
#395489
Tritanopia (blue-blind)
#7F3D58
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2e8b;
/* rgb */ color: rgb(126, 46, 139);
/* oklch */ color: oklch(45.6% 0.161 321.8);
Tailwind
colors: {
  custom: {
    50: '#a66dad',
    500: '#7e2e8b',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e8b;
$custom-light: #a66dad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e8b",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 291.613,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45605,
    "c": 0.16147,
    "h": 321.8
  },
  "luminance": 0.08254
}

Semantic roles & 50–950 ramp

primary
#7E2E8B
secondary
#6DB361
accent
#DA4E62
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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