#7F2292#7F2292

#7F2292 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.183 H 320.1°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#7F2292
RGBrgb(127, 34, 146)
HSLhsl(290, 62%, 35%)
HSVhsv(290, 77%, 57%)
CMYKcmyk(13%, 76.7%, 0%, 42.7%)
CIE-LABlab(33.42, 54.23, -41.85)
CIE-LCHlch(33.42, 68.50, 322.34°)
OKLaboklab(45% 0.1406 -0.1174)
OKLCHoklch(45% 0.183 320.1)
XYZxyz(14.5121, 7.7322, 27.9166)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2292 #359222
analogous
#472292 #7F2292 #92226D
triadic
#7F2292 #927F22 #22927F
tetradic
#7F2292 #924722 #359222 #226D92
square
#7F2292 #924722 #359222 #226D92
split-complementary
#7F2292 #6D9222 #229247
monochromatic
#290B2F #541660 #7F2292 #AA2EC4 #C257D8

Accessibility & contrast

On white

8.25
#7F2292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7F2292 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2292
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2292#FFFFFF#000000##FFFFFF
##7F22921.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004895
Deuteranopia (green-blind)
#2D528F
Tritanopia (blue-blind)
#7F3959
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2292;
/* rgb */ color: rgb(127, 34, 146);
/* oklch */ color: oklch(45.0% 0.183 320.1);
Tailwind
colors: {
  custom: {
    50: '#a868b2',
    500: '#7f2292',
    950: '#000000',
  },
}
SCSS
$custom: #7f2292;
$custom-light: #a868b2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2292",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 289.821,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.44999,
    "c": 0.18313,
    "h": 320.1
  },
  "luminance": 0.07731
}

Semantic roles & 50–950 ramp

primary
#7F2292
secondary
#66BC54
accent
#E5435E
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2292

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

Preview Lab → · Contrast checker → · Palette generator →

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