#7F228E#7F228E

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

Color values

HEX#7F228E
RGBrgb(127, 34, 142)
HSLhsl(292, 61%, 35%)
HSVhsv(292, 76%, 56%)
CMYKcmyk(10.6%, 76.1%, 0%, 44.3%)
CIE-LABlab(33.16, 53.47, -39.81)
CIE-LCHlch(33.16, 66.66, 323.33°)
OKLaboklab(44.73% 0.1409 -0.1114)
OKLCHoklch(44.73% 0.18 321.7)
XYZxyz(14.2064, 7.6099, 26.3065)
Luminance0.0761 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F228E #318E22
analogous
#49228E #7F228E #8E2267
triadic
#7F228E #8E7F22 #228E7F
tetradic
#7F228E #8E4922 #318E22 #22678E
square
#7F228E #8E4922 #318E22 #22678E
split-complementary
#7F228E #678E22 #228E49
monochromatic
#270A2B #53165D #7F228E #AB2EBF #C454D6

Accessibility & contrast

On white

8.33
#7F228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7F228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F228E
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F228E#FFFFFF#000000##FFFFFF
##7F228E1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#30518C
Tritanopia (blue-blind)
#803757
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f228e;
/* rgb */ color: rgb(127, 34, 142);
/* oklch */ color: oklch(44.7% 0.180 321.7);
Tailwind
colors: {
  custom: {
    50: '#a868b0',
    500: '#7f228e',
    950: '#000000',
  },
}
SCSS
$custom: #7f228e;
$custom-light: #a868b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f228e",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 291.667,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.4473,
    "c": 0.17965,
    "h": 321.7
  },
  "luminance": 0.07609
}

Semantic roles & 50–950 ramp

primary
#7F228E
secondary
#60BA52
accent
#E4435A
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F228E

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

Preview Lab → · Contrast checker → · Palette generator →

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