#7F197B#7F197B

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

Color values

HEX#7F197B
RGBrgb(127, 25, 123)
HSLhsl(302, 67%, 30%)
HSVhsv(302, 80%, 50%)
CMYKcmyk(0%, 80.3%, 3.1%, 50.2%)
CIE-LABlab(30.97, 53.00, -31.46)
CIE-LCHlch(30.97, 61.63, 329.31°)
OKLaboklab(42.79% 0.1499 -0.087)
OKLCHoklch(42.79% 0.173 329.9)
XYZxyz(12.6751, 6.6384, 19.3488)
Luminance0.0664 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F197B #197F1D
analogous
#50197F #7F197B #7F1948
triadic
#7F197B #7B7F19 #197B7F
tetradic
#7F197B #7F5019 #197F1D #19487F
square
#7F197B #7F5019 #197F1D #19487F
split-complementary
#7F197B #487F19 #197F50
monochromatic
#1A0519 #4C0F49 #7F197B #B223AD #D83AD2

Accessibility & contrast

On white

9.02
#7F197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7F197B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F197B
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F197B#FFFFFF#000000##FFFFFF
##7F197B1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07407E
Deuteranopia (green-blind)
#394E79
Tritanopia (blue-blind)
#84284A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f197b;
/* rgb */ color: rgb(127, 25, 123);
/* oklch */ color: oklch(42.8% 0.173 329.9);
Tailwind
colors: {
  custom: {
    50: '#a863a1',
    500: '#7f197b',
    950: '#000000',
  },
}
SCSS
$custom: #7f197b;
$custom-light: #a863a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f197b",
  "rgb": {
    "r": 127,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 302.353,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42794,
    "c": 0.17333,
    "h": 329.9
  },
  "luminance": 0.06637
}

Semantic roles & 50–950 ramp

primary
#7F197B
secondary
#41B345
accent
#EA453E
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F197B

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

Preview Lab → · Contrast checker → · Palette generator →

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