#7E2B8E#7E2B8E

#7E2B8E is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.5% C 0.168 H 320.7°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#7E2B8E
RGBrgb(126, 43, 142)
HSLhsl(290, 54%, 36%)
HSVhsv(290, 70%, 56%)
CMYKcmyk(11.3%, 69.7%, 0%, 44.3%)
CIE-LABlab(34.23, 49.75, -38.11)
CIE-LCHlch(34.23, 62.67, 322.55°)
OKLaboklab(45.46% 0.1304 -0.1065)
OKLCHoklch(45.46% 0.168 320.7)
XYZxyz(14.3500, 8.1171, 26.3968)
Luminance0.0812 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2B8E #3B8E2B
analogous
#4D2B8E #7E2B8E #8E2B6D
triadic
#7E2B8E #8E7E2B #2B8E7E
tetradic
#7E2B8E #8E4D2B #3B8E2B #2B6D8E
square
#7E2B8E #8E4D2B #3B8E2B #2B6D8E
split-complementary
#7E2B8E #6D8E2B #2B8E4D
monochromatic
#2B0F30 #541D5F #7E2B8E #A839BD #BE63D0

Accessibility & contrast

On white

8.01
#7E2B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7E2B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2B8E
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2B8E#FFFFFF#000000##FFFFFF
##7E2B8E1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064B91
Deuteranopia (green-blind)
#35538C
Tritanopia (blue-blind)
#7F3D59
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2b8e;
/* rgb */ color: rgb(126, 43, 142);
/* oklch */ color: oklch(45.5% 0.168 320.7);
Tailwind
colors: {
  custom: {
    50: '#a66caf',
    500: '#7e2b8e',
    950: '#000000',
  },
}
SCSS
$custom: #7e2b8e;
$custom-light: #a66caf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2b8e",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 142
  },
  "hsl": {
    "h": 290.303,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45461,
    "c": 0.16834,
    "h": 320.7
  },
  "luminance": 0.08116
}

Semantic roles & 50–950 ramp

primary
#7E2B8E
secondary
#6DB65F
accent
#DD4B62
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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