#7F28BD#7F28BD

#7F28BD is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.7% C 0.216 H 306.1°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#7F28BD
RGBrgb(127, 40, 189)
HSLhsl(275, 65%, 45%)
HSVhsv(275, 79%, 74%)
CMYKcmyk(32.8%, 78.8%, 0%, 25.9%)
CIE-LABlab(37.31, 61.01, -61.38)
CIE-LCHlch(37.31, 86.55, 314.83°)
OKLaboklab(48.73% 0.1274 -0.1748)
OKLCHoklch(48.73% 0.216 306.1)
XYZxyz(18.6945, 9.7039, 49.0224)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F28BD #66BD28
analogous
#3528BD #7F28BD #BD28B0
triadic
#7F28BD #BD7F28 #28BD7F
tetradic
#7F28BD #BD3528 #66BD28 #28B0BD
square
#7F28BD #BD3528 #66BD28 #28B0BD
split-complementary
#7F28BD #B0BD28 #28BD35
monochromatic
#3B1358 #5D1D8A #7F28BD #9D4AD9 #B87CE3

Accessibility & contrast

On white

7.14
#7F28BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7F28BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F28BD
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F28BD#FFFFFF#000000##FFFFFF
##7F28BD1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#0058BA
Tritanopia (blue-blind)
#744F73
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f28bd;
/* rgb */ color: rgb(127, 40, 189);
/* oklch */ color: oklch(48.7% 0.216 306.1);
Tailwind
colors: {
  custom: {
    50: '#aa6dd2',
    500: '#7f28bd',
    950: '#000000',
  },
}
SCSS
$custom: #7f28bd;
$custom-light: #aa6dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f28bd",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 189
  },
  "hsl": {
    "h": 275.034,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48727,
    "c": 0.21629,
    "h": 306.1
  },
  "luminance": 0.09704
}

Semantic roles & 50–950 ramp

primary
#7F28BD
secondary
#99CB75
accent
#E84086
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F28BD

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

Preview Lab → · Contrast checker → · Palette generator →

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