#7E227C#7E227C

#7E227C is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.4% C 0.164 H 328.9°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#7E227C
RGBrgb(126, 34, 124)
HSLhsl(301, 58%, 31%)
HSVhsv(301, 73%, 49%)
CMYKcmyk(0%, 73%, 1.6%, 50.6%)
CIE-LABlab(31.89, 49.97, -30.64)
CIE-LCHlch(31.89, 58.61, 328.48°)
OKLaboklab(43.44% 0.1403 -0.0847)
OKLCHoklch(43.44% 0.164 328.9)
XYZxyz(12.8142, 7.0359, 19.7480)
Luminance0.0703 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E227C #227E24
analogous
#52227E #7E227C #7E224E
triadic
#7E227C #7C7E22 #227C7E
tetradic
#7E227C #7E5222 #227E24 #224E7E
square
#7E227C #7E5222 #227E24 #224E7E
split-complementary
#7E227C #4E7E22 #227E52
monochromatic
#1E081D #4E154D #7E227C #AE2FAB #CF4CCC

Accessibility & contrast

On white

8.72
#7E227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7E227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E227C
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E227C#FFFFFF#000000##FFFFFF
##7E227C1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15437F
Deuteranopia (green-blind)
#3B4F7A
Tritanopia (blue-blind)
#822F4D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e227c;
/* rgb */ color: rgb(126, 34, 124);
/* oklch */ color: oklch(43.4% 0.164 328.9);
Tailwind
colors: {
  custom: {
    50: '#a767a2',
    500: '#7e227c',
    950: '#000000',
  },
}
SCSS
$custom: #7e227c;
$custom-light: #a767a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e227c",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 301.304,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43437,
    "c": 0.16391,
    "h": 328.9
  },
  "luminance": 0.07035
}

Semantic roles & 50–950 ramp

primary
#7E227C
secondary
#4BB14D
accent
#E14A47
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E227C

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

Preview Lab → · Contrast checker → · Palette generator →

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