#7F28C5#7F28C5

#7F28C5 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.4% C 0.224 H 304.1°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#7F28C5
RGBrgb(127, 40, 197)
HSLhsl(273, 66%, 46%)
HSVhsv(273, 80%, 77%)
CMYKcmyk(35.5%, 79.7%, 0%, 22.7%)
CIE-LABlab(37.95, 62.78, -65.02)
CIE-LCHlch(37.95, 90.38, 314.00°)
OKLaboklab(49.38% 0.1253 -0.1854)
OKLCHoklch(49.38% 0.224 304.1)
XYZxyz(19.5869, 10.0609, 53.7226)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F28C5 #6EC528
analogous
#3028C5 #7F28C5 #C528BD
triadic
#7F28C5 #C57F28 #28C57F
tetradic
#7F28C5 #C53028 #6EC528 #28BDC5
square
#7F28C5 #C53028 #6EC528 #28BDC5
split-complementary
#7F28C5 #BDC528 #28C530
monochromatic
#3D135F #5E1E92 #7F28C5 #9D4FDB #B982E6

Accessibility & contrast

On white

6.97
#7F28C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7F28C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F28C5
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F28C5#FFFFFF#000000##FFFFFF
##7F28C51.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C9
Deuteranopia (green-blind)
#0059C2
Tritanopia (blue-blind)
#715377
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f28c5;
/* rgb */ color: rgb(127, 40, 197);
/* oklch */ color: oklch(49.4% 0.224 304.1);
Tailwind
colors: {
  custom: {
    50: '#ab6dd8',
    500: '#7f28c5',
    950: '#000000',
  },
}
SCSS
$custom: #7f28c5;
$custom-light: #ab6dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f28c5",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 197
  },
  "hsl": {
    "h": 273.248,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.49378,
    "c": 0.22381,
    "h": 304.1
  },
  "luminance": 0.10061
}

Semantic roles & 50–950 ramp

primary
#7F28C5
secondary
#A0CE7A
accent
#E93F8B
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110815
muted
#807A83

Preview Lab

Preview with #7F28C5

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

Preview Lab → · Contrast checker → · Palette generator →

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