#7E2270#7E2270

#7E2270 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.8% C 0.154 H 334.8°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#7E2270
RGBrgb(126, 34, 112)
HSLhsl(309, 58%, 31%)
HSVhsv(309, 73%, 49%)
CMYKcmyk(0%, 73%, 11.1%, 50.6%)
CIE-LABlab(31.23, 47.95, -24.09)
CIE-LCHlch(31.23, 53.66, 333.33°)
OKLaboklab(42.75% 0.1396 -0.0658)
OKLCHoklch(42.75% 0.154 334.8)
XYZxyz(12.1010, 6.7506, 15.9918)
Luminance0.0675 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2270 #227E30
analogous
#5E227E #7E2270 #7E2242
triadic
#7E2270 #707E22 #22707E
tetradic
#7E2270 #7E5E22 #227E30 #22427E
square
#7E2270 #7E5E22 #227E30 #22427E
split-complementary
#7E2270 #427E22 #227E5E
monochromatic
#1E081A #4E1545 #7E2270 #AE2F9B #CF4CBB

Accessibility & contrast

On white

8.94
#7E2270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7E2270 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2270
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2270#FFFFFF#000000##FFFFFF
##7E22701.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214172
Deuteranopia (green-blind)
#414E6E
Tritanopia (blue-blind)
#842946
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e2270;
/* rgb */ color: rgb(126, 34, 112);
/* oklch */ color: oklch(42.8% 0.154 334.8);
Tailwind
colors: {
  custom: {
    50: '#a66699',
    500: '#7e2270',
    950: '#000000',
  },
}
SCSS
$custom: #7e2270;
$custom-light: #a66699;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2270",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 112
  },
  "hsl": {
    "h": 309.13,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42751,
    "c": 0.15431,
    "h": 334.8
  },
  "luminance": 0.0675
}

Semantic roles & 50–950 ramp

primary
#7E2270
secondary
#4BB15B
accent
#E15E47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E2270

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

Preview Lab → · Contrast checker → · Palette generator →

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