#7E267D#7E267D

#7E267D is a dark, vivid purple. Relative luminance 0.073; OKLCH L 43.9% C 0.160 H 328.4°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#7E267D
RGBrgb(126, 38, 125)
HSLhsl(301, 54%, 32%)
HSVhsv(301, 70%, 49%)
CMYKcmyk(0%, 69.8%, 0.8%, 50.6%)
CIE-LABlab(32.49, 48.61, -30.32)
CIE-LCHlch(32.49, 57.29, 328.04°)
OKLaboklab(43.89% 0.136 -0.0838)
OKLCHoklch(43.89% 0.16 328.4)
XYZxyz(12.9988, 7.3034, 20.1231)
Luminance0.0730 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E267D #267E27
analogous
#53267E #7E267D #7E2651
triadic
#7E267D #7D7E26 #267D7E
tetradic
#7E267D #7E5326 #267E27 #26517E
square
#7E267D #7E5326 #267E27 #26517E
split-complementary
#7E267D #517E26 #267E53
monochromatic
#200A20 #4F184E #7E267D #AD34AC #CB53CA

Accessibility & contrast

On white

8.53
#7E267D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7E267D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E267D
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E267D#FFFFFF#000000##FFFFFF
##7E267D1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A457F
Deuteranopia (green-blind)
#3D507B
Tritanopia (blue-blind)
#82324E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e267d;
/* rgb */ color: rgb(126, 38, 125);
/* oklch */ color: oklch(43.9% 0.160 328.4);
Tailwind
colors: {
  custom: {
    50: '#a669a3',
    500: '#7e267d',
    950: '#000000',
  },
}
SCSS
$custom: #7e267d;
$custom-light: #a669a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e267d",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 125
  },
  "hsl": {
    "h": 300.682,
    "s": 53.659,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43886,
    "c": 0.15974,
    "h": 328.4
  },
  "luminance": 0.07303
}

Semantic roles & 50–950 ramp

primary
#7E267D
secondary
#50B051
accent
#DD4C4B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E267D

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

Preview Lab → · Contrast checker → · Palette generator →

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