#7F1875#7F1875

#7F1875 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.4% C 0.170 H 332.6°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#7F1875
RGBrgb(127, 24, 117)
HSLhsl(306, 68%, 30%)
HSVhsv(306, 81%, 50%)
CMYKcmyk(0%, 81.1%, 7.9%, 50.2%)
CIE-LABlab(30.52, 52.31, -28.37)
CIE-LCHlch(30.52, 59.51, 331.53°)
OKLaboklab(42.36% 0.1507 -0.078)
OKLCHoklch(42.36% 0.17 332.6)
XYZxyz(12.2900, 6.4507, 17.4240)
Luminance0.0645 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1875 #187F22
analogous
#56187F #7F1875 #7F1842
triadic
#7F1875 #757F18 #18757F
tetradic
#7F1875 #7F5618 #187F22 #18427F
square
#7F1875 #7F5618 #187F22 #18427F
split-complementary
#7F1875 #427F18 #187F56
monochromatic
#1A0518 #4C0E46 #7F1875 #B222A4 #D938CA

Accessibility & contrast

On white

9.17
#7F1875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7F1875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1875
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1875#FFFFFF#000000##FFFFFF
##7F18751.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113F77
Deuteranopia (green-blind)
#3C4D73
Tritanopia (blue-blind)
#852546
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f1875;
/* rgb */ color: rgb(127, 24, 117);
/* oklch */ color: oklch(42.4% 0.170 332.6);
Tailwind
colors: {
  custom: {
    50: '#a8639d',
    500: '#7f1875',
    950: '#000000',
  },
}
SCSS
$custom: #7f1875;
$custom-light: #a8639d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1875",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 305.825,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42363,
    "c": 0.16972,
    "h": 332.6
  },
  "luminance": 0.0645
}

Semantic roles & 50–950 ramp

primary
#7F1875
secondary
#3FB34B
accent
#EB4E3D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1875

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

Preview Lab → · Contrast checker → · Palette generator →

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