#7E2274#7E2274

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

Color values

HEX#7E2274
RGBrgb(126, 34, 116)
HSLhsl(307, 58%, 31%)
HSVhsv(307, 73%, 49%)
CMYKcmyk(0%, 73%, 7.9%, 50.6%)
CIE-LABlab(31.44, 48.60, -26.30)
CIE-LCHlch(31.44, 55.26, 331.58°)
OKLaboklab(42.97% 0.1399 -0.0722)
OKLCHoklch(42.97% 0.157 332.7)
XYZxyz(12.3286, 6.8416, 17.1909)
Luminance0.0684 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2274 #227E2C
analogous
#5A227E #7E2274 #7E2246
triadic
#7E2274 #747E22 #22747E
tetradic
#7E2274 #7E5A22 #227E2C #22467E
square
#7E2274 #7E5A22 #227E2C #22467E
split-complementary
#7E2274 #467E22 #227E5A
monochromatic
#1E081B #4E1548 #7E2274 #AE2FA0 #CF4CC0

Accessibility & contrast

On white

8.87
#7E2274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7E2274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2274
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2274#FFFFFF#000000##FFFFFF
##7E22741.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2274;
/* rgb */ color: rgb(126, 34, 116);
/* oklch */ color: oklch(43.0% 0.157 332.7);
Tailwind
colors: {
  custom: {
    50: '#a6669c',
    500: '#7e2274',
    950: '#000000',
  },
}
SCSS
$custom: #7e2274;
$custom-light: #a6669c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2274",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 116
  },
  "hsl": {
    "h": 306.522,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42973,
    "c": 0.15744,
    "h": 332.7
  },
  "luminance": 0.06841
}

Semantic roles & 50–950 ramp

primary
#7E2274
secondary
#4BB156
accent
#E15847
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E2274

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

Preview Lab → · Contrast checker → · Palette generator →

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