#7F2283#7F2283

#7F2283 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.0% C 0.170 H 326.2°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#7F2283
RGBrgb(127, 34, 131)
HSLhsl(298, 59%, 32%)
HSVhsv(298, 74%, 51%)
CMYKcmyk(3.1%, 74%, 0%, 48.6%)
CIE-LABlab(32.47, 51.44, -34.09)
CIE-LCHlch(32.47, 61.71, 326.47°)
OKLaboklab(44.02% 0.1415 -0.0947)
OKLCHoklch(44.02% 0.17 326.2)
XYZxyz(13.4209, 7.2957, 22.1696)
Luminance0.0730 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2283 #268322
analogous
#4F2283 #7F2283 #832256
triadic
#7F2283 #837F22 #22837F
tetradic
#7F2283 #834F22 #268322 #225683
square
#7F2283 #834F22 #268322 #225683
split-complementary
#7F2283 #568322 #22834F
monochromatic
#210922 #501552 #7F2283 #AE2FB4 #CC4ED1

Accessibility & contrast

On white

8.54
#7F2283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7F2283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2283
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2283#FFFFFF#000000##FFFFFF
##7F22831.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094586
Deuteranopia (green-blind)
#385081
Tritanopia (blue-blind)
#823250
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f2283;
/* rgb */ color: rgb(127, 34, 131);
/* oklch */ color: oklch(44.0% 0.170 326.2);
Tailwind
colors: {
  custom: {
    50: '#a767a7',
    500: '#7f2283',
    950: '#000000',
  },
}
SCSS
$custom: #7f2283;
$custom-light: #a767a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2283",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 131
  },
  "hsl": {
    "h": 297.526,
    "s": 58.788,
    "l": 32.353
  },
  "oklch": {
    "l": 0.4402,
    "c": 0.17026,
    "h": 326.2
  },
  "luminance": 0.07295
}

Semantic roles & 50–950 ramp

primary
#7F2283
secondary
#51B44C
accent
#E2464C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F2283

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

Preview Lab → · Contrast checker → · Palette generator →

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