#7F28BB#7F28BB

#7F28BB is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.6% C 0.214 H 306.6°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#7F28BB
RGBrgb(127, 40, 187)
HSLhsl(276, 65%, 45%)
HSVhsv(276, 79%, 73%)
CMYKcmyk(32.1%, 78.6%, 0%, 26.7%)
CIE-LABlab(37.15, 60.57, -60.46)
CIE-LCHlch(37.15, 85.58, 315.05°)
OKLaboklab(48.57% 0.1279 -0.172)
OKLCHoklch(48.57% 0.214 306.6)
XYZxyz(18.4789, 9.6177, 47.8870)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F28BB #64BB28
analogous
#3528BB #7F28BB #BB28AE
triadic
#7F28BB #BB7F28 #28BB7F
tetradic
#7F28BB #BB3528 #64BB28 #28AEBB
square
#7F28BB #BB3528 #64BB28 #28AEBB
split-complementary
#7F28BB #AEBB28 #28BB35
monochromatic
#3B1256 #5D1D89 #7F28BB #9D48D8 #B87BE3

Accessibility & contrast

On white

7.18
#7F28BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7F28BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F28BB
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F28BB#FFFFFF#000000##FFFFFF
##7F28BB1.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BF
Deuteranopia (green-blind)
#0058B8
Tritanopia (blue-blind)
#744E71
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f28bb;
/* rgb */ color: rgb(127, 40, 187);
/* oklch */ color: oklch(48.6% 0.214 306.6);
Tailwind
colors: {
  custom: {
    50: '#aa6cd0',
    500: '#7f28bb',
    950: '#000000',
  },
}
SCSS
$custom: #7f28bb;
$custom-light: #aa6cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f28bb",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 187
  },
  "hsl": {
    "h": 275.51,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48567,
    "c": 0.21439,
    "h": 306.6
  },
  "luminance": 0.09617
}

Semantic roles & 50–950 ramp

primary
#7F28BB
secondary
#97CB74
accent
#E84085
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #7F28BB

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

Preview Lab → · Contrast checker → · Palette generator →

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