#7F2298#7F2298

#7F2298 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.188 H 317.9°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#7F2298
RGBrgb(127, 34, 152)
HSLhsl(287, 63%, 36%)
HSVhsv(287, 78%, 60%)
CMYKcmyk(16.4%, 77.6%, 0%, 40.4%)
CIE-LABlab(33.82, 55.39, -44.87)
CIE-LCHlch(33.82, 71.29, 320.99°)
OKLaboklab(45.42% 0.1399 -0.1262)
OKLCHoklch(45.42% 0.188 317.9)
XYZxyz(14.9911, 7.9238, 30.4395)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2298 #3B9822
analogous
#442298 #7F2298 #982276
triadic
#7F2298 #987F22 #22987F
tetradic
#7F2298 #984422 #3B9822 #227698
square
#7F2298 #984422 #3B9822 #227698
split-complementary
#7F2298 #769822 #229844
monochromatic
#2B0C34 #551766 #7F2298 #A92DCA #BF5ADA

Accessibility & contrast

On white

8.13
#7F2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7F2298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2298
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2298#FFFFFF#000000##FFFFFF
##7F22981.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#275295
Tritanopia (blue-blind)
#7E3C5C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f2298;
/* rgb */ color: rgb(127, 34, 152);
/* oklch */ color: oklch(45.4% 0.188 317.9);
Tailwind
colors: {
  custom: {
    50: '#a868b7',
    500: '#7f2298',
    950: '#000000',
  },
}
SCSS
$custom: #7f2298;
$custom-light: #a868b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2298",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 287.288,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45415,
    "c": 0.18839,
    "h": 317.9
  },
  "luminance": 0.07923
}

Semantic roles & 50–950 ramp

primary
#7F2298
secondary
#6DBE57
accent
#E64164
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2298

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

Preview Lab → · Contrast checker → · Palette generator →

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