#7F28B4#7F28B4

#7F28B4 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.0% C 0.208 H 308.6°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#7F28B4
RGBrgb(127, 40, 180)
HSLhsl(277, 64%, 43%)
HSVhsv(277, 78%, 71%)
CMYKcmyk(29.4%, 77.8%, 0%, 29.4%)
CIE-LABlab(36.60, 59.05, -57.21)
CIE-LCHlch(36.60, 82.22, 315.91°)
OKLaboklab(48.02% 0.1296 -0.1625)
OKLCHoklch(48.02% 0.208 308.6)
XYZxyz(17.7477, 9.3252, 44.0362)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F28B4 #5DB428
analogous
#3928B4 #7F28B4 #B428A3
triadic
#7F28B4 #B47F28 #28B47F
tetradic
#7F28B4 #B43928 #5DB428 #28A3B4
square
#7F28B4 #B43928 #5DB428 #28A3B4
split-complementary
#7F28B4 #A3B428 #28B439
monochromatic
#381250 #5C1D82 #7F28B4 #9E44D5 #B876E1

Accessibility & contrast

On white

7.33
#7F28B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7F28B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F28B4
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F28B4#FFFFFF#000000##FFFFFF
##7F28B41.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0057B1
Tritanopia (blue-blind)
#774B6D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f28b4;
/* rgb */ color: rgb(127, 40, 180);
/* oklch */ color: oklch(48.0% 0.208 308.6);
Tailwind
colors: {
  custom: {
    50: '#a96ccb',
    500: '#7f28b4',
    950: '#000000',
  },
}
SCSS
$custom: #7f28b4;
$custom-light: #a96ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f28b4",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 180
  },
  "hsl": {
    "h": 277.286,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48016,
    "c": 0.20782,
    "h": 308.6
  },
  "luminance": 0.09325
}

Semantic roles & 50–950 ramp

primary
#7F28B4
secondary
#91C870
accent
#E74180
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F28B4

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

Preview Lab → · Contrast checker → · Palette generator →

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