#7F28B1#7F28B1

#7F28B1 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.8% C 0.205 H 309.4°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#7F28B1
RGBrgb(127, 40, 177)
HSLhsl(278, 63%, 43%)
HSVhsv(278, 77%, 69%)
CMYKcmyk(28.2%, 77.4%, 0%, 30.6%)
CIE-LABlab(36.37, 58.40, -55.80)
CIE-LCHlch(36.37, 80.77, 316.30°)
OKLaboklab(47.78% 0.1302 -0.1583)
OKLCHoklch(47.78% 0.205 309.4)
XYZxyz(17.4454, 9.2043, 42.4440)
Luminance0.0920 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F28B1 #5AB128
analogous
#3A28B1 #7F28B1 #B1289F
triadic
#7F28B1 #B17F28 #28B17F
tetradic
#7F28B1 #B13A28 #5AB128 #289FB1
square
#7F28B1 #B13A28 #5AB128 #289FB1
split-complementary
#7F28B1 #9FB128 #28B13A
monochromatic
#37114D #5B1D7F #7F28B1 #9F42D4 #B874E0

Accessibility & contrast

On white

7.39
#7F28B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7F28B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F28B1
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F28B1#FFFFFF#000000##FFFFFF
##7F28B11.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B5
Deuteranopia (green-blind)
#0057AE
Tritanopia (blue-blind)
#784A6C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f28b1;
/* rgb */ color: rgb(127, 40, 177);
/* oklch */ color: oklch(47.8% 0.205 309.4);
Tailwind
colors: {
  custom: {
    50: '#a96cc9',
    500: '#7f28b1',
    950: '#000000',
  },
}
SCSS
$custom: #7f28b1;
$custom-light: #a96cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f28b1",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 278.102,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47784,
    "c": 0.205,
    "h": 309.4
  },
  "luminance": 0.09204
}

Semantic roles & 50–950 ramp

primary
#7F28B1
secondary
#8EC76E
accent
#E6427E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F28B1

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

Preview Lab → · Contrast checker → · Palette generator →

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