#7F228B#7F228B

#7F228B is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.5% C 0.177 H 322.9°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#7F228B
RGBrgb(127, 34, 139)
HSLhsl(293, 61%, 34%)
HSVhsv(293, 76%, 55%)
CMYKcmyk(8.6%, 75.5%, 0%, 45.5%)
CIE-LABlab(32.96, 52.90, -38.27)
CIE-LCHlch(32.96, 65.29, 324.12°)
OKLaboklab(44.53% 0.1412 -0.1069)
OKLCHoklch(44.53% 0.177 322.9)
XYZxyz(13.9842, 7.5210, 25.1362)
Luminance0.0752 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F228B #2E8B22
analogous
#4B228B #7F228B #8B2263
triadic
#7F228B #8B7F22 #228B7F
tetradic
#7F228B #8B4B22 #2E8B22 #22638B
square
#7F228B #8B4B22 #2E8B22 #22638B
split-complementary
#7F228B #638B22 #228B4B
monochromatic
#250A29 #52165A #7F228B #AC2EBC #C653D5

Accessibility & contrast

On white

8.39
#7F228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7F228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F228B
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F228B#FFFFFF#000000##FFFFFF
##7F228B1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#335189
Tritanopia (blue-blind)
#813655
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f228b;
/* rgb */ color: rgb(127, 34, 139);
/* oklch */ color: oklch(44.5% 0.177 322.9);
Tailwind
colors: {
  custom: {
    50: '#a868ad',
    500: '#7f228b',
    950: '#000000',
  },
}
SCSS
$custom: #7f228b;
$custom-light: #a868ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f228b",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 293.143,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44531,
    "c": 0.17706,
    "h": 322.9
  },
  "luminance": 0.0752
}

Semantic roles & 50–950 ramp

primary
#7F228B
secondary
#5CB850
accent
#E44456
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F228B

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

Preview Lab → · Contrast checker → · Palette generator →

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