#7F187B#7F187B

#7F187B is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.174 H 329.9°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#7F187B
RGBrgb(127, 24, 123)
HSLhsl(302, 68%, 30%)
HSVhsv(302, 81%, 50%)
CMYKcmyk(0%, 81.1%, 3.1%, 50.2%)
CIE-LABlab(30.87, 53.28, -31.62)
CIE-LCHlch(30.87, 61.96, 329.32°)
OKLaboklab(42.72% 0.1507 -0.0874)
OKLCHoklch(42.72% 0.174 329.9)
XYZxyz(12.6541, 6.5964, 19.3418)
Luminance0.0659 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F187B #187F1C
analogous
#50187F #7F187B #7F1848
triadic
#7F187B #7B7F18 #187B7F
tetradic
#7F187B #7F5018 #187F1C #18487F
square
#7F187B #7F5018 #187F1C #18487F
split-complementary
#7F187B #487F18 #187F50
monochromatic
#1A0519 #4C0E49 #7F187B #B222AD #D938D3

Accessibility & contrast

On white

9.06
#7F187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7F187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F187B
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F187B#FFFFFF#000000##FFFFFF
##7F187B1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04407E
Deuteranopia (green-blind)
#394D79
Tritanopia (blue-blind)
#842849
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f187b;
/* rgb */ color: rgb(127, 24, 123);
/* oklch */ color: oklch(42.7% 0.174 329.9);
Tailwind
colors: {
  custom: {
    50: '#a863a1',
    500: '#7f187b',
    950: '#000000',
  },
}
SCSS
$custom: #7f187b;
$custom-light: #a863a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f187b",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 302.33,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42723,
    "c": 0.17427,
    "h": 329.9
  },
  "luminance": 0.06595
}

Semantic roles & 50–950 ramp

primary
#7F187B
secondary
#3FB344
accent
#EB443D
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F187B

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

Preview Lab → · Contrast checker → · Palette generator →

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