#7F2895#7F2895

#7F2895 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.8% C 0.179 H 318.7°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#7F2895
RGBrgb(127, 40, 149)
HSLhsl(288, 58%, 37%)
HSVhsv(288, 73%, 58%)
CMYKcmyk(14.8%, 73.2%, 0%, 41.6%)
CIE-LABlab(34.40, 52.59, -42.12)
CIE-LCHlch(34.40, 67.38, 321.31°)
OKLaboklab(45.76% 0.1344 -0.1182)
OKLCHoklch(45.76% 0.179 318.7)
XYZxyz(14.9353, 8.2002, 29.2240)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2895 #3E9528
analogous
#492895 #7F2895 #952875
triadic
#7F2895 #957F28 #28957F
tetradic
#7F2895 #954928 #3E9528 #287595
square
#7F2895 #954928 #3E9528 #287595
split-complementary
#7F2895 #759528 #289549
monochromatic
#2D0E35 #561B65 #7F2895 #A835C5 #BE62D5

Accessibility & contrast

On white

7.95
#7F2895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7F2895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2895
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2895#FFFFFF#000000##FFFFFF
##7F28951.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B98
Deuteranopia (green-blind)
#2E5492
Tritanopia (blue-blind)
#7F3E5C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f2895;
/* rgb */ color: rgb(127, 40, 149);
/* oklch */ color: oklch(45.8% 0.179 318.7);
Tailwind
colors: {
  custom: {
    50: '#a86bb5',
    500: '#7f2895',
    950: '#000000',
  },
}
SCSS
$custom: #7f2895;
$custom-light: #a86bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2895",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 287.89,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45758,
    "c": 0.17899,
    "h": 318.7
  },
  "luminance": 0.082
}

Semantic roles & 50–950 ramp

primary
#7F2895
secondary
#71BB5E
accent
#E14766
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2895

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

Preview Lab → · Contrast checker → · Palette generator →

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