#7F1B83#7F1B83

#7F1B83 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.178 H 326.4°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#7F1B83
RGBrgb(127, 27, 131)
HSLhsl(298, 66%, 31%)
HSVhsv(298, 79%, 51%)
CMYKcmyk(3.1%, 79.4%, 0%, 48.6%)
CIE-LABlab(31.66, 53.77, -35.38)
CIE-LCHlch(31.66, 64.36, 326.65°)
OKLaboklab(43.44% 0.148 -0.0984)
OKLCHoklch(43.44% 0.178 326.4)
XYZxyz(13.2408, 6.9355, 22.1096)
Luminance0.0693 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1B83 #1F831B
analogous
#4B1B83 #7F1B83 #831B53
triadic
#7F1B83 #837F1B #1B837F
tetradic
#7F1B83 #834B1B #1F831B #1B5383
square
#7F1B83 #834B1B #1F831B #1B5383
split-complementary
#7F1B83 #53831B #1B834B
monochromatic
#1D061E #4E1150 #7F1B83 #B025B6 #D241D8

Accessibility & contrast

On white

8.80
#7F1B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7F1B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1B83
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1B83#FFFFFF#000000##FFFFFF
##7F1B831.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004386
Deuteranopia (green-blind)
#354F81
Tritanopia (blue-blind)
#822E4F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f1b83;
/* rgb */ color: rgb(127, 27, 131);
/* oklch */ color: oklch(43.4% 0.178 326.4);
Tailwind
colors: {
  custom: {
    50: '#a864a7',
    500: '#7f1b83',
    950: '#000000',
  },
}
SCSS
$custom: #7f1b83;
$custom-light: #a864a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1b83",
  "rgb": {
    "r": 127,
    "g": 27,
    "b": 131
  },
  "hsl": {
    "h": 297.692,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43442,
    "c": 0.17771,
    "h": 326.4
  },
  "luminance": 0.06935
}

Semantic roles & 50–950 ramp

primary
#7F1B83
secondary
#48B643
accent
#E93F46
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F1B83

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

Preview Lab → · Contrast checker → · Palette generator →

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