#7F2273#7F2273

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

Color values

HEX#7F2273
RGBrgb(127, 34, 115)
HSLhsl(308, 58%, 32%)
HSVhsv(308, 73%, 50%)
CMYKcmyk(0%, 73.2%, 9.4%, 50.2%)
CIE-LABlab(31.57, 48.69, -25.46)
CIE-LCHlch(31.57, 54.94, 332.40°)
OKLaboklab(43.08% 0.141 -0.0697)
OKLCHoklch(43.08% 0.157 333.7)
XYZxyz(12.4190, 6.8949, 16.8931)
Luminance0.0689 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2273 #227F2E
analogous
#5D227F #7F2273 #7F2245
triadic
#7F2273 #737F22 #22737F
tetradic
#7F2273 #7F5D22 #227F2E #22457F
square
#7F2273 #7F5D22 #227F2E #22457F
split-complementary
#7F2273 #457F22 #227F5D
monochromatic
#1E081C #4F1547 #7F2273 #AF2F9F #CF4CBE

Accessibility & contrast

On white

8.83
#7F2273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2273
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2273#FFFFFF#000000##FFFFFF
##7F22731.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4275
Deuteranopia (green-blind)
#414F71
Tritanopia (blue-blind)
#852A48
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f2273;
/* rgb */ color: rgb(127, 34, 115);
/* oklch */ color: oklch(43.1% 0.157 333.7);
Tailwind
colors: {
  custom: {
    50: '#a7679b',
    500: '#7f2273',
    950: '#000000',
  },
}
SCSS
$custom: #7f2273;
$custom-light: #a7679b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2273",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 115
  },
  "hsl": {
    "h": 307.742,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43078,
    "c": 0.15725,
    "h": 333.7
  },
  "luminance": 0.06894
}

Semantic roles & 50–950 ramp

primary
#7F2273
secondary
#4BB258
accent
#E15B47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F2273

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

Preview Lab → · Contrast checker → · Palette generator →

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