#7F228C#7F228C

#7F228C is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.6% C 0.178 H 322.5°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#7F228C
RGBrgb(127, 34, 140)
HSLhsl(293, 61%, 34%)
HSVhsv(293, 76%, 55%)
CMYKcmyk(9.3%, 75.7%, 0%, 45.1%)
CIE-LABlab(33.03, 53.09, -38.78)
CIE-LCHlch(33.03, 65.75, 323.85°)
OKLaboklab(44.6% 0.1411 -0.1084)
OKLCHoklch(44.6% 0.178 322.5)
XYZxyz(14.0576, 7.5503, 25.5228)
Luminance0.0755 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F228C #2F8C22
analogous
#4A228C #7F228C #8C2264
triadic
#7F228C #8C7F22 #228C7F
tetradic
#7F228C #8C4A22 #2F8C22 #22648C
square
#7F228C #8C4A22 #2F8C22 #22648C
split-complementary
#7F228C #648C22 #228C4A
monochromatic
#260A2A #52165B #7F228C #AC2EBD #C553D5

Accessibility & contrast

On white

8.37
#7F228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F228C
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F228C#FFFFFF#000000##FFFFFF
##7F228C1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#32518A
Tritanopia (blue-blind)
#813655
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f228c;
/* rgb */ color: rgb(127, 34, 140);
/* oklch */ color: oklch(44.6% 0.178 322.5);
Tailwind
colors: {
  custom: {
    50: '#a868ae',
    500: '#7f228c',
    950: '#000000',
  },
}
SCSS
$custom: #7f228c;
$custom-light: #a868ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7f228c",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 292.642,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44597,
    "c": 0.17792,
    "h": 322.5
  },
  "luminance": 0.0755
}

Semantic roles & 50–950 ramp

primary
#7F228C
secondary
#5EB951
accent
#E44457
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F228C

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

Preview Lab → · Contrast checker → · Palette generator →

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