#7F2185#7F2185

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

Color values

HEX#7F2185
RGBrgb(127, 33, 133)
HSLhsl(296, 60%, 33%)
HSVhsv(296, 75%, 52%)
CMYKcmyk(4.5%, 75.2%, 0%, 47.8%)
CIE-LABlab(32.47, 52.16, -35.34)
CIE-LCHlch(32.47, 63.00, 325.88°)
OKLaboklab(44.06% 0.1424 -0.0983)
OKLCHoklch(44.06% 0.173 325.4)
XYZxyz(13.5296, 7.2941, 22.8810)
Luminance0.0729 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2185 #278521
analogous
#4D2185 #7F2185 #852159
triadic
#7F2185 #857F21 #21857F
tetradic
#7F2185 #854D21 #278521 #215985
square
#7F2185 #854D21 #278521 #215985
split-complementary
#7F2185 #598521 #21854D
monochromatic
#210923 #501554 #7F2185 #AE2DB6 #CB4DD3

Accessibility & contrast

On white

8.54
#7F2185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2185
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2185#FFFFFF#000000##FFFFFF
##7F21851.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014588
Deuteranopia (green-blind)
#375083
Tritanopia (blue-blind)
#823251
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f2185;
/* rgb */ color: rgb(127, 33, 133);
/* oklch */ color: oklch(44.1% 0.173 325.4);
Tailwind
colors: {
  custom: {
    50: '#a767a9',
    500: '#7f2185',
    950: '#000000',
  },
}
SCSS
$custom: #7f2185;
$custom-light: #a767a9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2185",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 133
  },
  "hsl": {
    "h": 296.4,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44057,
    "c": 0.17308,
    "h": 325.4
  },
  "luminance": 0.07293
}

Semantic roles & 50–950 ramp

primary
#7F2185
secondary
#52B64C
accent
#E3444E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F2185

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

Preview Lab → · Contrast checker → · Palette generator →

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