#7F1874#7F1874

#7F1874 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.169 H 333.1°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#7F1874
RGBrgb(127, 24, 116)
HSLhsl(306, 68%, 30%)
HSVhsv(306, 81%, 50%)
CMYKcmyk(0%, 81.1%, 8.7%, 50.2%)
CIE-LABlab(30.47, 52.15, -27.83)
CIE-LCHlch(30.47, 59.11, 331.92°)
OKLaboklab(42.31% 0.1507 -0.0765)
OKLCHoklch(42.31% 0.169 333.1)
XYZxyz(12.2315, 6.4273, 17.1160)
Luminance0.0643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1874 #187F23
analogous
#57187F #7F1874 #7F1840
triadic
#7F1874 #747F18 #18747F
tetradic
#7F1874 #7F5718 #187F23 #18407F
square
#7F1874 #7F5718 #187F23 #18407F
split-complementary
#7F1874 #407F18 #187F57
monochromatic
#1A0518 #4C0E45 #7F1874 #B222A3 #D938C8

Accessibility & contrast

On white

9.19
#7F1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1874
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1874#FFFFFF#000000##FFFFFF
##7F18741.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123E76
Deuteranopia (green-blind)
#3D4D72
Tritanopia (blue-blind)
#852446
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f1874;
/* rgb */ color: rgb(127, 24, 116);
/* oklch */ color: oklch(42.3% 0.169 333.1);
Tailwind
colors: {
  custom: {
    50: '#a8639c',
    500: '#7f1874',
    950: '#000000',
  },
}
SCSS
$custom: #7f1874;
$custom-light: #a8639c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1874",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 306.408,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42305,
    "c": 0.16897,
    "h": 333.1
  },
  "luminance": 0.06426
}

Semantic roles & 50–950 ramp

primary
#7F1874
secondary
#3FB34C
accent
#EB4F3D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1874

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

Preview Lab → · Contrast checker → · Palette generator →

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