#7F2186#7F2186

#7F2186 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.174 H 325.0°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#7F2186
RGBrgb(127, 33, 134)
HSLhsl(296, 60%, 33%)
HSVhsv(296, 75%, 53%)
CMYKcmyk(5.2%, 75.4%, 0%, 47.5%)
CIE-LABlab(32.53, 52.34, -35.87)
CIE-LCHlch(32.53, 63.45, 325.58°)
OKLaboklab(44.12% 0.1424 -0.0999)
OKLCHoklch(44.12% 0.174 325)
XYZxyz(13.5990, 7.3218, 23.2466)
Luminance0.0732 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2186 #288621
analogous
#4D2186 #7F2186 #86215A
triadic
#7F2186 #867F21 #21867F
tetradic
#7F2186 #864D21 #288621 #215A86
square
#7F2186 #864D21 #288621 #215A86
split-complementary
#7F2186 #5A8621 #21864D
monochromatic
#220924 #501555 #7F2186 #AE2DB7 #CA4ED3

Accessibility & contrast

On white

8.52
#7F2186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7F2186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2186
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2186#FFFFFF#000000##FFFFFF
##7F21861.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004589
Deuteranopia (green-blind)
#365084
Tritanopia (blue-blind)
#823352
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f2186;
/* rgb */ color: rgb(127, 33, 134);
/* oklch */ color: oklch(44.1% 0.174 325.0);
Tailwind
colors: {
  custom: {
    50: '#a767aa',
    500: '#7f2186',
    950: '#000000',
  },
}
SCSS
$custom: #7f2186;
$custom-light: #a767aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2186",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 295.842,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.4412,
    "c": 0.17392,
    "h": 325
  },
  "luminance": 0.07321
}

Semantic roles & 50–950 ramp

primary
#7F2186
secondary
#54B74C
accent
#E4444F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2186

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

Preview Lab → · Contrast checker → · Palette generator →

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