#7F288B#7F288B

#7F288B is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.1% C 0.170 H 322.6°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#7F288B
RGBrgb(127, 40, 139)
HSLhsl(293, 55%, 35%)
HSVhsv(293, 71%, 55%)
CMYKcmyk(8.6%, 71.2%, 0%, 45.5%)
CIE-LABlab(33.76, 50.64, -36.99)
CIE-LCHlch(33.76, 62.71, 323.85°)
OKLaboklab(45.1% 0.135 -0.1032)
OKLCHoklch(45.1% 0.17 322.6)
XYZxyz(14.1709, 7.8945, 25.1985)
Luminance0.0789 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F288B #348B28
analogous
#4D288B #7F288B #8B2866
triadic
#7F288B #8B7F28 #288B7F
tetradic
#7F288B #8B4D28 #348B28 #28668B
square
#7F288B #8B4D28 #348B28 #28668B
split-complementary
#7F288B #668B28 #288B4D
monochromatic
#280D2C #541A5B #7F288B #AA36BB #C25DD0

Accessibility & contrast

On white

8.14
#7F288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7F288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F288B
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F288B#FFFFFF#000000##FFFFFF
##7F288B1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06498E
Deuteranopia (green-blind)
#365389
Tritanopia (blue-blind)
#813956
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f288b;
/* rgb */ color: rgb(127, 40, 139);
/* oklch */ color: oklch(45.1% 0.170 322.6);
Tailwind
colors: {
  custom: {
    50: '#a76aad',
    500: '#7f288b',
    950: '#000000',
  },
}
SCSS
$custom: #7f288b;
$custom-light: #a76aad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f288b",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 292.727,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45101,
    "c": 0.16993,
    "h": 322.6
  },
  "luminance": 0.07894
}

Semantic roles & 50–950 ramp

primary
#7F288B
secondary
#64B659
accent
#DF495B
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F288B

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

Preview Lab → · Contrast checker → · Palette generator →

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