#7F2285#7F2285

#7F2285 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.172 H 325.3°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#7F2285
RGBrgb(127, 34, 133)
HSLhsl(296, 59%, 33%)
HSVhsv(296, 74%, 52%)
CMYKcmyk(4.5%, 74.4%, 0%, 47.8%)
CIE-LABlab(32.59, 51.80, -35.14)
CIE-LCHlch(32.59, 62.60, 325.85°)
OKLaboklab(44.15% 0.1414 -0.0978)
OKLCHoklch(44.15% 0.172 325.3)
XYZxyz(13.5578, 7.3504, 22.8904)
Luminance0.0735 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2285 #288522
analogous
#4E2285 #7F2285 #852259
triadic
#7F2285 #857F22 #22857F
tetradic
#7F2285 #854E22 #288522 #225985
square
#7F2285 #854E22 #288522 #225985
split-complementary
#7F2285 #598522 #22854E
monochromatic
#220924 #501654 #7F2285 #AE2EB6 #CA4FD2

Accessibility & contrast

On white

8.50
#7F2285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7F2285 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2285
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2285#FFFFFF#000000##FFFFFF
##7F22851.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044588
Deuteranopia (green-blind)
#375183
Tritanopia (blue-blind)
#823352
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f2285;
/* rgb */ color: rgb(127, 34, 133);
/* oklch */ color: oklch(44.1% 0.172 325.3);
Tailwind
colors: {
  custom: {
    50: '#a767a9',
    500: '#7f2285',
    950: '#000000',
  },
}
SCSS
$custom: #7f2285;
$custom-light: #a767a9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2285",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 296.364,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.44145,
    "c": 0.17194,
    "h": 325.3
  },
  "luminance": 0.0735
}

Semantic roles & 50–950 ramp

primary
#7F2285
secondary
#54B64D
accent
#E2454F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2285

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

Preview Lab → · Contrast checker → · Palette generator →

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