#7E226F#7E226F

#7E226F is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.7% C 0.154 H 335.3°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#7E226F
RGBrgb(126, 34, 111)
HSLhsl(310, 58%, 31%)
HSVhsv(310, 73%, 49%)
CMYKcmyk(0%, 73%, 11.9%, 50.6%)
CIE-LABlab(31.18, 47.79, -23.53)
CIE-LCHlch(31.18, 53.27, 333.78°)
OKLaboklab(42.7% 0.1395 -0.0642)
OKLCHoklch(42.7% 0.154 335.3)
XYZxyz(12.0456, 6.7284, 15.7002)
Luminance0.0673 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E226F #227E31
analogous
#5F227E #7E226F #7E2241
triadic
#7E226F #6F7E22 #226F7E
tetradic
#7E226F #7E5F22 #227E31 #22417E
square
#7E226F #7E5F22 #227E31 #22417E
split-complementary
#7E226F #417E22 #227E5F
monochromatic
#1E081A #4E1545 #7E226F #AE2F99 #CF4CB9

Accessibility & contrast

On white

8.95
#7E226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E226F
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E226F#FFFFFF#000000##FFFFFF
##7E226F1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224171
Deuteranopia (green-blind)
#424E6D
Tritanopia (blue-blind)
#842945
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e226f;
/* rgb */ color: rgb(126, 34, 111);
/* oklch */ color: oklch(42.7% 0.154 335.3);
Tailwind
colors: {
  custom: {
    50: '#a66698',
    500: '#7e226f',
    950: '#000000',
  },
}
SCSS
$custom: #7e226f;
$custom-light: #a66698;
$custom-dark: #000000;
JSON
{
  "hex": "#7e226f",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 309.783,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42697,
    "c": 0.15355,
    "h": 335.3
  },
  "luminance": 0.06727
}

Semantic roles & 50–950 ramp

primary
#7E226F
secondary
#4BB15C
accent
#E16047
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E226F

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

Preview Lab → · Contrast checker → · Palette generator →

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