#7F1674#7F1674

#7F1674 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.2% C 0.171 H 333.1°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#7F1674
RGBrgb(127, 22, 116)
HSLhsl(306, 70%, 29%)
HSVhsv(306, 83%, 50%)
CMYKcmyk(0%, 82.7%, 8.7%, 50.2%)
CIE-LABlab(30.27, 52.71, -28.13)
CIE-LCHlch(30.27, 59.74, 331.91°)
OKLaboklab(42.17% 0.1523 -0.0773)
OKLCHoklch(42.17% 0.171 333.1)
XYZxyz(12.1918, 6.3479, 17.1028)
Luminance0.0635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1674 #167F21
analogous
#56167F #7F1674 #7F1640
triadic
#7F1674 #747F16 #16747F
tetradic
#7F1674 #7F5616 #167F21 #16407F
square
#7F1674 #7F5616 #167F21 #16407F
split-complementary
#7F1674 #407F16 #167F56
monochromatic
#1A0518 #4B0D44 #7F1674 #B31FA4 #DC34CA

Accessibility & contrast

On white

9.25
#7F1674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7F1674 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1674
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1674#FFFFFF#000000##FFFFFF
##7F16741.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103E76
Deuteranopia (green-blind)
#3C4C72
Tritanopia (blue-blind)
#852345
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1674;
/* rgb */ color: rgb(127, 22, 116);
/* oklch */ color: oklch(42.2% 0.171 333.1);
Tailwind
colors: {
  custom: {
    50: '#a8629c',
    500: '#7f1674',
    950: '#000000',
  },
}
SCSS
$custom: #7f1674;
$custom-light: #a8629c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1674",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 306.286,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42167,
    "c": 0.17081,
    "h": 333.1
  },
  "luminance": 0.06347
}

Semantic roles & 50–950 ramp

primary
#7F1674
secondary
#3DB449
accent
#ED4D3B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1674

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

Preview Lab → · Contrast checker → · Palette generator →

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