#7F2893#7F2893

#7F2893 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.6% C 0.177 H 319.4°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#7F2893
RGBrgb(127, 40, 147)
HSLhsl(289, 57%, 37%)
HSVhsv(289, 73%, 58%)
CMYKcmyk(13.6%, 72.8%, 0%, 42.4%)
CIE-LABlab(34.27, 52.19, -41.11)
CIE-LCHlch(34.27, 66.43, 321.78°)
OKLaboklab(45.62% 0.1346 -0.1152)
OKLCHoklch(45.62% 0.177 319.4)
XYZxyz(14.7770, 8.1369, 28.3903)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2893 #3C9328
analogous
#4A2893 #7F2893 #932872
triadic
#7F2893 #937F28 #28937F
tetradic
#7F2893 #934A28 #3C9328 #287293
square
#7F2893 #934A28 #3C9328 #287293
split-complementary
#7F2893 #729328 #28934A
monochromatic
#2C0E33 #551B63 #7F2893 #A935C3 #BF61D4

Accessibility & contrast

On white

7.99
#7F2893 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7F2893 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2893
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2893#FFFFFF#000000##FFFFFF
##7F28931.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B96
Deuteranopia (green-blind)
#305391
Tritanopia (blue-blind)
#7F3D5B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f2893;
/* rgb */ color: rgb(127, 40, 147);
/* oklch */ color: oklch(45.6% 0.177 319.4);
Tailwind
colors: {
  custom: {
    50: '#a86bb3',
    500: '#7f2893',
    950: '#000000',
  },
}
SCSS
$custom: #7f2893;
$custom-light: #a86bb3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2893",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 147
  },
  "hsl": {
    "h": 288.785,
    "s": 57.219,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45623,
    "c": 0.17716,
    "h": 319.4
  },
  "luminance": 0.08136
}

Semantic roles & 50–950 ramp

primary
#7F2893
secondary
#6EBA5D
accent
#E04764
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2893

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

Preview Lab → · Contrast checker → · Palette generator →

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