#7E267C#7E267C

#7E267C is a dark, vivid purple. Relative luminance 0.073; OKLCH L 43.8% C 0.159 H 328.8°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#7E267C
RGBrgb(126, 38, 124)
HSLhsl(301, 54%, 32%)
HSVhsv(301, 70%, 49%)
CMYKcmyk(0%, 69.8%, 1.6%, 50.6%)
CIE-LABlab(32.43, 48.43, -29.78)
CIE-LCHlch(32.43, 56.86, 328.41°)
OKLaboklab(43.83% 0.1359 -0.0823)
OKLCHoklch(43.83% 0.159 328.8)
XYZxyz(12.9353, 7.2780, 19.7884)
Luminance0.0728 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E267C #267E28
analogous
#54267E #7E267C #7E2650
triadic
#7E267C #7C7E26 #267C7E
tetradic
#7E267C #7E5426 #267E28 #26507E
square
#7E267C #7E5426 #267E28 #26507E
split-complementary
#7E267C #507E26 #267E54
monochromatic
#200A1F #4F184E #7E267C #AD34AA #CB53C8

Accessibility & contrast

On white

8.55
#7E267C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E267C
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E267C#FFFFFF#000000##FFFFFF
##7E267C1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e267c;
/* rgb */ color: rgb(126, 38, 124);
/* oklch */ color: oklch(43.8% 0.159 328.8);
Tailwind
colors: {
  custom: {
    50: '#a669a2',
    500: '#7e267c',
    950: '#000000',
  },
}
SCSS
$custom: #7e267c;
$custom-light: #a669a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e267c",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 124
  },
  "hsl": {
    "h": 301.364,
    "s": 53.659,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43827,
    "c": 0.1589,
    "h": 328.8
  },
  "luminance": 0.07277
}

Semantic roles & 50–950 ramp

primary
#7E267C
secondary
#50B052
accent
#DD4E4B
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E267C

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

Preview Lab → · Contrast checker → · Palette generator →

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