#7F28BA#7F28BA

#7F28BA is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.5% C 0.213 H 306.9°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#7F28BA
RGBrgb(127, 40, 186)
HSLhsl(276, 65%, 44%)
HSVhsv(276, 78%, 73%)
CMYKcmyk(31.7%, 78.5%, 0%, 27.1%)
CIE-LABlab(37.07, 60.35, -60.00)
CIE-LCHlch(37.07, 85.10, 315.17°)
OKLaboklab(48.49% 0.1282 -0.1707)
OKLCHoklch(48.49% 0.213 306.9)
XYZxyz(18.3722, 9.5750, 47.3252)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F28BA #63BA28
analogous
#3628BA #7F28BA #BA28AC
triadic
#7F28BA #BA7F28 #28BA7F
tetradic
#7F28BA #BA3628 #63BA28 #28ACBA
square
#7F28BA #BA3628 #63BA28 #28ACBA
split-complementary
#7F28BA #ACBA28 #28BA36
monochromatic
#3A1255 #5D1D88 #7F28BA #9D48D8 #B87AE2

Accessibility & contrast

On white

7.20
#7F28BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7F28BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F28BA
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F28BA#FFFFFF#000000##FFFFFF
##7F28BA1.007.202.917.20
#FFFFFF7.201.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BE
Deuteranopia (green-blind)
#0058B7
Tritanopia (blue-blind)
#754E71
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f28ba;
/* rgb */ color: rgb(127, 40, 186);
/* oklch */ color: oklch(48.5% 0.213 306.9);
Tailwind
colors: {
  custom: {
    50: '#aa6cd0',
    500: '#7f28ba',
    950: '#000000',
  },
}
SCSS
$custom: #7f28ba;
$custom-light: #aa6cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f28ba",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 186
  },
  "hsl": {
    "h": 275.753,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48487,
    "c": 0.21346,
    "h": 306.9
  },
  "luminance": 0.09575
}

Semantic roles & 50–950 ramp

primary
#7F28BA
secondary
#97CA73
accent
#E84084
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #7F28BA

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

Preview Lab → · Contrast checker → · Palette generator →

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