#7F2274#7F2274

#7F2274 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.1% C 0.158 H 333.2°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#7F2274
RGBrgb(127, 34, 116)
HSLhsl(307, 58%, 32%)
HSVhsv(307, 73%, 50%)
CMYKcmyk(0%, 73.2%, 8.7%, 50.2%)
CIE-LABlab(31.62, 48.86, -26.01)
CIE-LCHlch(31.62, 55.35, 331.97°)
OKLaboklab(43.13% 0.141 -0.0713)
OKLCHoklch(43.13% 0.158 333.2)
XYZxyz(12.4769, 6.9181, 17.1978)
Luminance0.0692 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2274 #227F2D
analogous
#5C227F #7F2274 #7F2246
triadic
#7F2274 #747F22 #22747F
tetradic
#7F2274 #7F5C22 #227F2D #22467F
square
#7F2274 #7F5C22 #227F2D #22467F
split-complementary
#7F2274 #467F22 #227F5C
monochromatic
#1E081C #4F1548 #7F2274 #AF2FA0 #CF4CC0

Accessibility & contrast

On white

8.81
#7F2274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7F2274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2274
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2274#FFFFFF#000000##FFFFFF
##7F22741.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4276
Deuteranopia (green-blind)
#404F72
Tritanopia (blue-blind)
#852B48
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f2274;
/* rgb */ color: rgb(127, 34, 116);
/* oklch */ color: oklch(43.1% 0.158 333.2);
Tailwind
colors: {
  custom: {
    50: '#a7679c',
    500: '#7f2274',
    950: '#000000',
  },
}
SCSS
$custom: #7f2274;
$custom-light: #a7679c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2274",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 116
  },
  "hsl": {
    "h": 307.097,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43133,
    "c": 0.15803,
    "h": 333.2
  },
  "luminance": 0.06917
}

Semantic roles & 50–950 ramp

primary
#7F2274
secondary
#4BB257
accent
#E15947
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F2274

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

Preview Lab → · Contrast checker → · Palette generator →

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