#7F228F#7F228F

#7F228F is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.181 H 321.3°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#7F228F
RGBrgb(127, 34, 143)
HSLhsl(291, 62%, 35%)
HSVhsv(291, 76%, 56%)
CMYKcmyk(11.2%, 76.2%, 0%, 43.9%)
CIE-LABlab(33.22, 53.66, -40.32)
CIE-LCHlch(33.22, 67.12, 323.07°)
OKLaboklab(44.8% 0.1409 -0.1129)
OKLCHoklch(44.8% 0.181 321.3)
XYZxyz(14.2818, 7.6400, 26.7037)
Luminance0.0764 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F228F #328F22
analogous
#49228F #7F228F #8F2268
triadic
#7F228F #8F7F22 #228F7F
tetradic
#7F228F #8F4922 #328F22 #22688F
square
#7F228F #8F4922 #328F22 #22688F
split-complementary
#7F228F #688F22 #228F49
monochromatic
#270A2C #53165E #7F228F #AB2EC0 #C455D7

Accessibility & contrast

On white

8.31
#7F228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7F228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F228F
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F228F#FFFFFF#000000##FFFFFF
##7F228F1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f228f;
/* rgb */ color: rgb(127, 34, 143);
/* oklch */ color: oklch(44.8% 0.181 321.3);
Tailwind
colors: {
  custom: {
    50: '#a868b0',
    500: '#7f228f',
    950: '#000000',
  },
}
SCSS
$custom: #7f228f;
$custom-light: #a868b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f228f",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 291.193,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44796,
    "c": 0.18052,
    "h": 321.3
  },
  "luminance": 0.07639
}

Semantic roles & 50–950 ramp

primary
#7F228F
secondary
#62BA52
accent
#E5435B
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F228F

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

Preview Lab → · Contrast checker → · Palette generator →

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