#7F2287#7F2287

#7F2287 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.174 H 324.5°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#7F2287
RGBrgb(127, 34, 135)
HSLhsl(295, 60%, 33%)
HSVhsv(295, 75%, 53%)
CMYKcmyk(5.9%, 74.8%, 0%, 47.1%)
CIE-LABlab(32.71, 52.17, -36.19)
CIE-LCHlch(32.71, 63.49, 325.25°)
OKLaboklab(44.27% 0.1414 -0.1008)
OKLCHoklch(44.27% 0.174 324.5)
XYZxyz(13.6972, 7.4062, 23.6251)
Luminance0.0741 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2287 #2A8722
analogous
#4D2287 #7F2287 #87225C
triadic
#7F2287 #877F22 #22877F
tetradic
#7F2287 #874D22 #2A8722 #225C87
square
#7F2287 #874D22 #2A8722 #225C87
split-complementary
#7F2287 #5C8722 #22874D
monochromatic
#230925 #511656 #7F2287 #AD2EB8 #C950D3

Accessibility & contrast

On white

8.46
#7F2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7F2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2287
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2287#FFFFFF#000000##FFFFFF
##7F22871.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468A
Deuteranopia (green-blind)
#365185
Tritanopia (blue-blind)
#823453
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f2287;
/* rgb */ color: rgb(127, 34, 135);
/* oklch */ color: oklch(44.3% 0.174 324.5);
Tailwind
colors: {
  custom: {
    50: '#a767aa',
    500: '#7f2287',
    950: '#000000',
  },
}
SCSS
$custom: #7f2287;
$custom-light: #a767aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2287",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 295.248,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44272,
    "c": 0.17364,
    "h": 324.5
  },
  "luminance": 0.07405
}

Semantic roles & 50–950 ramp

primary
#7F2287
secondary
#57B74E
accent
#E34551
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2287

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

Preview Lab → · Contrast checker → · Palette generator →

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