#7F2286#7F2286

#7F2286 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.2% C 0.173 H 324.9°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#7F2286
RGBrgb(127, 34, 134)
HSLhsl(296, 60%, 33%)
HSVhsv(296, 75%, 53%)
CMYKcmyk(5.2%, 74.6%, 0%, 47.5%)
CIE-LABlab(32.65, 51.98, -35.67)
CIE-LCHlch(32.65, 63.04, 325.54°)
OKLaboklab(44.21% 0.1414 -0.0993)
OKLCHoklch(44.21% 0.173 324.9)
XYZxyz(13.6272, 7.3782, 23.2560)
Luminance0.0738 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2286 #298622
analogous
#4D2286 #7F2286 #86225B
triadic
#7F2286 #867F22 #22867F
tetradic
#7F2286 #864D22 #298622 #225B86
square
#7F2286 #864D22 #298622 #225B86
split-complementary
#7F2286 #5B8622 #22864D
monochromatic
#220924 #511655 #7F2286 #AD2EB7 #C950D3

Accessibility & contrast

On white

8.48
#7F2286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7F2286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2286
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2286#FFFFFF#000000##FFFFFF
##7F22861.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014689
Deuteranopia (green-blind)
#365184
Tritanopia (blue-blind)
#823352
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f2286;
/* rgb */ color: rgb(127, 34, 134);
/* oklch */ color: oklch(44.2% 0.173 324.9);
Tailwind
colors: {
  custom: {
    50: '#a767aa',
    500: '#7f2286',
    950: '#000000',
  },
}
SCSS
$custom: #7f2286;
$custom-light: #a767aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2286",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 295.8,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44209,
    "c": 0.17279,
    "h": 324.9
  },
  "luminance": 0.07377
}

Semantic roles & 50–950 ramp

primary
#7F2286
secondary
#55B64E
accent
#E34550
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2286

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

Preview Lab → · Contrast checker → · Palette generator →

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