#7E228F#7E228F

#7E228F is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.6% C 0.180 H 320.8°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#7E228F
RGBrgb(126, 34, 143)
HSLhsl(291, 62%, 35%)
HSVhsv(291, 76%, 56%)
CMYKcmyk(11.9%, 76.2%, 0%, 43.9%)
CIE-LABlab(33.06, 53.44, -40.60)
CIE-LCHlch(33.06, 67.11, 322.78°)
OKLaboklab(44.65% 0.1396 -0.1137)
OKLCHoklch(44.65% 0.18 320.8)
XYZxyz(14.1336, 7.5636, 26.6967)
Luminance0.0756 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E228F #338F22
analogous
#47228F #7E228F #8F226A
triadic
#7E228F #8F7E22 #228F7E
tetradic
#7E228F #8F4722 #338F22 #226A8F
square
#7E228F #8F4722 #338F22 #226A8F
split-complementary
#7E228F #6A8F22 #228F47
monochromatic
#270A2C #52165E #7E228F #AA2EC0 #C255D7

Accessibility & contrast

On white

8.36
#7E228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7E228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E228F
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E228F#FFFFFF#000000##FFFFFF
##7E228F1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#2E518D
Tritanopia (blue-blind)
#7F3857
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e228f;
/* rgb */ color: rgb(126, 34, 143);
/* oklch */ color: oklch(44.6% 0.180 320.8);
Tailwind
colors: {
  custom: {
    50: '#a768b0',
    500: '#7e228f',
    950: '#000000',
  },
}
SCSS
$custom: #7e228f;
$custom-light: #a768b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e228f",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 290.642,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44647,
    "c": 0.18009,
    "h": 320.8
  },
  "luminance": 0.07563
}

Semantic roles & 50–950 ramp

primary
#7E228F
secondary
#63BA52
accent
#E5435C
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E228F

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

Preview Lab → · Contrast checker → · Palette generator →

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