#7E2273#7E2273

#7E2273 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.9% C 0.157 H 333.2°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#7E2273
RGBrgb(126, 34, 115)
HSLhsl(307, 58%, 31%)
HSVhsv(307, 73%, 49%)
CMYKcmyk(0%, 73%, 8.7%, 50.6%)
CIE-LABlab(31.39, 48.44, -25.75)
CIE-LCHlch(31.39, 54.86, 332.01°)
OKLaboklab(42.92% 0.1399 -0.0706)
OKLCHoklch(42.92% 0.157 333.2)
XYZxyz(12.2708, 6.8185, 16.8862)
Luminance0.0682 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2273 #227E2D
analogous
#5B227E #7E2273 #7E2245
triadic
#7E2273 #737E22 #22737E
tetradic
#7E2273 #7E5B22 #227E2D #22457E
square
#7E2273 #7E5B22 #227E2D #22457E
split-complementary
#7E2273 #457E22 #227E5B
monochromatic
#1E081B #4E1547 #7E2273 #AE2F9F #CF4CBF

Accessibility & contrast

On white

8.89
#7E2273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7E2273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2273
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2273#FFFFFF#000000##FFFFFF
##7E22731.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4175
Deuteranopia (green-blind)
#404F71
Tritanopia (blue-blind)
#842B48
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e2273;
/* rgb */ color: rgb(126, 34, 115);
/* oklch */ color: oklch(42.9% 0.157 333.2);
Tailwind
colors: {
  custom: {
    50: '#a6669b',
    500: '#7e2273',
    950: '#000000',
  },
}
SCSS
$custom: #7e2273;
$custom-light: #a6669b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2273",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 115
  },
  "hsl": {
    "h": 307.174,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42917,
    "c": 0.15666,
    "h": 333.2
  },
  "luminance": 0.06817
}

Semantic roles & 50–950 ramp

primary
#7E2273
secondary
#4BB157
accent
#E15947
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E2273

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

Preview Lab → · Contrast checker → · Palette generator →

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