#7F2294#7F2294

#7F2294 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.1% C 0.185 H 319.4°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#7F2294
RGBrgb(127, 34, 148)
HSLhsl(289, 63%, 36%)
HSVhsv(289, 77%, 58%)
CMYKcmyk(14.2%, 77%, 0%, 42%)
CIE-LABlab(33.55, 54.61, -42.86)
CIE-LCHlch(33.55, 69.43, 321.87°)
OKLaboklab(45.14% 0.1404 -0.1203)
OKLCHoklch(45.14% 0.185 319.4)
XYZxyz(14.6690, 7.7949, 28.7431)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2294 #379422
analogous
#462294 #7F2294 #942270
triadic
#7F2294 #947F22 #22947F
tetradic
#7F2294 #944622 #379422 #227094
square
#7F2294 #944622 #379422 #227094
split-complementary
#7F2294 #709422 #229446
monochromatic
#2A0B30 #541762 #7F2294 #AA2DC6 #C158D9

Accessibility & contrast

On white

8.21
#7F2294 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7F2294 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2294
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2294#FFFFFF#000000##FFFFFF
##7F22941.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004997
Deuteranopia (green-blind)
#2B5291
Tritanopia (blue-blind)
#7F3A5A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2294;
/* rgb */ color: rgb(127, 34, 148);
/* oklch */ color: oklch(45.1% 0.185 319.4);
Tailwind
colors: {
  custom: {
    50: '#a868b4',
    500: '#7f2294',
    950: '#000000',
  },
}
SCSS
$custom: #7f2294;
$custom-light: #a868b4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2294",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 148
  },
  "hsl": {
    "h": 288.947,
    "s": 62.637,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45136,
    "c": 0.18487,
    "h": 319.4
  },
  "luminance": 0.07794
}

Semantic roles & 50–950 ramp

primary
#7F2294
secondary
#68BD55
accent
#E64260
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2294

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

Preview Lab → · Contrast checker → · Palette generator →

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