#7F186E#7F186E

#7F186E is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.165 H 336.0°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#7F186E
RGBrgb(127, 24, 110)
HSLhsl(310, 68%, 30%)
HSVhsv(310, 81%, 50%)
CMYKcmyk(0%, 81.1%, 13.4%, 50.2%)
CIE-LABlab(30.14, 51.22, -24.51)
CIE-LCHlch(30.14, 56.78, 334.42°)
OKLaboklab(41.96% 0.1504 -0.0669)
OKLCHoklch(41.96% 0.165 336)
XYZxyz(11.8937, 6.2922, 15.3370)
Luminance0.0629 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F186E #187F29
analogous
#5D187F #7F186E #7F183B
triadic
#7F186E #6E7F18 #186E7F
tetradic
#7F186E #7F5D18 #187F29 #183B7F
square
#7F186E #7F5D18 #187F29 #183B7F
split-complementary
#7F186E #3B7F18 #187F5D
monochromatic
#1A0516 #4C0E41 #7F186E #B2229B #D938BF

Accessibility & contrast

On white

9.30
#7F186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7F186E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F186E
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F186E#FFFFFF#000000##FFFFFF
##7F186E1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193D70
Deuteranopia (green-blind)
#3F4C6C
Tritanopia (blue-blind)
#862142
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f186e;
/* rgb */ color: rgb(127, 24, 110);
/* oklch */ color: oklch(42.0% 0.165 336.0);
Tailwind
colors: {
  custom: {
    50: '#a86298',
    500: '#7f186e',
    950: '#000000',
  },
}
SCSS
$custom: #7f186e;
$custom-light: #a86298;
$custom-dark: #000000;
JSON
{
  "hex": "#7f186e",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 309.903,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41964,
    "c": 0.16458,
    "h": 336
  },
  "luminance": 0.06291
}

Semantic roles & 50–950 ramp

primary
#7F186E
secondary
#3FB353
accent
#EB5A3D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F186E

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

Preview Lab → · Contrast checker → · Palette generator →

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