#7F2183#7F2183

#7F2183 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.9% C 0.171 H 326.2°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#7F2183
RGBrgb(127, 33, 131)
HSLhsl(298, 60%, 32%)
HSVhsv(298, 75%, 51%)
CMYKcmyk(3.1%, 74.8%, 0%, 48.6%)
CIE-LABlab(32.35, 51.80, -34.29)
CIE-LCHlch(32.35, 62.12, 326.50°)
OKLaboklab(43.93% 0.1425 -0.0953)
OKLCHoklch(43.93% 0.171 326.2)
XYZxyz(13.3927, 7.2393, 22.1603)
Luminance0.0724 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2183 #258321
analogous
#4E2183 #7F2183 #832156
triadic
#7F2183 #837F21 #21837F
tetradic
#7F2183 #834E21 #258321 #215683
square
#7F2183 #834E21 #258321 #215683
split-complementary
#7F2183 #568321 #21834E
monochromatic
#200821 #501552 #7F2183 #AE2DB4 #CD4CD2

Accessibility & contrast

On white

8.58
#7F2183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7F2183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2183
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2183#FFFFFF#000000##FFFFFF
##7F21831.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064586
Deuteranopia (green-blind)
#385081
Tritanopia (blue-blind)
#823150
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f2183;
/* rgb */ color: rgb(127, 33, 131);
/* oklch */ color: oklch(43.9% 0.171 326.2);
Tailwind
colors: {
  custom: {
    50: '#a767a7',
    500: '#7f2183',
    950: '#000000',
  },
}
SCSS
$custom: #7f2183;
$custom-light: #a767a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2183",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 297.551,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43931,
    "c": 0.1714,
    "h": 326.2
  },
  "luminance": 0.07238
}

Semantic roles & 50–950 ramp

primary
#7F2183
secondary
#4FB54B
accent
#E3454B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F2183

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

Preview Lab → · Contrast checker → · Palette generator →

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