#7F228D#7F228D

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

Color values

HEX#7F228D
RGBrgb(127, 34, 141)
HSLhsl(292, 61%, 34%)
HSVhsv(292, 76%, 55%)
CMYKcmyk(9.9%, 75.9%, 0%, 44.7%)
CIE-LABlab(33.09, 53.28, -39.30)
CIE-LCHlch(33.09, 66.20, 323.59°)
OKLaboklab(44.66% 0.141 -0.1099)
OKLCHoklch(44.66% 0.179 322.1)
XYZxyz(14.1316, 7.5800, 25.9129)
Luminance0.0758 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F228D #308D22
analogous
#4A228D #7F228D #8D2266
triadic
#7F228D #8D7F22 #228D7F
tetradic
#7F228D #8D4A22 #308D22 #22668D
square
#7F228D #8D4A22 #308D22 #22668D
split-complementary
#7F228D #668D22 #228D4A
monochromatic
#260A2A #53165C #7F228D #AB2EBE #C554D6

Accessibility & contrast

On white

8.35
#7F228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F228D
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F228D#FFFFFF#000000##FFFFFF
##7F228D1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#31518B
Tritanopia (blue-blind)
#803756
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f228d;
/* rgb */ color: rgb(127, 34, 141);
/* oklch */ color: oklch(44.7% 0.179 322.1);
Tailwind
colors: {
  custom: {
    50: '#a868af',
    500: '#7f228d',
    950: '#000000',
  },
}
SCSS
$custom: #7f228d;
$custom-light: #a868af;
$custom-dark: #000000;
JSON
{
  "hex": "#7f228d",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 292.15,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44663,
    "c": 0.17879,
    "h": 322.1
  },
  "luminance": 0.07579
}

Semantic roles & 50–950 ramp

primary
#7F228D
secondary
#5FB951
accent
#E44459
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F228D

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

Preview Lab → · Contrast checker → · Palette generator →

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