#7F28AD#7F28AD

#7F28AD is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.5% C 0.201 H 310.6°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#7F28AD
RGBrgb(127, 40, 173)
HSLhsl(279, 62%, 42%)
HSVhsv(279, 77%, 68%)
CMYKcmyk(26.6%, 76.9%, 0%, 32.2%)
CIE-LABlab(36.07, 57.54, -53.90)
CIE-LCHlch(36.07, 78.84, 316.87°)
OKLaboklab(47.48% 0.131 -0.1528)
OKLCHoklch(47.48% 0.201 310.6)
XYZxyz(17.0525, 9.0471, 40.3750)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F28AD #56AD28
analogous
#3D28AD #7F28AD #AD2899
triadic
#7F28AD #AD7F28 #28AD7F
tetradic
#7F28AD #AD3D28 #56AD28 #2899AD
square
#7F28AD #AD3D28 #56AD28 #2899AD
split-complementary
#7F28AD #99AD28 #28AD3D
monochromatic
#36114A #5B1D7B #7F28AD #A03FD3 #B971DE

Accessibility & contrast

On white

7.47
#7F28AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7F28AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F28AD
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F28AD#FFFFFF#000000##FFFFFF
##7F28AD1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B1
Deuteranopia (green-blind)
#0356AA
Tritanopia (blue-blind)
#794869
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f28ad;
/* rgb */ color: rgb(127, 40, 173);
/* oklch */ color: oklch(47.5% 0.201 310.6);
Tailwind
colors: {
  custom: {
    50: '#a96cc6',
    500: '#7f28ad',
    950: '#000000',
  },
}
SCSS
$custom: #7f28ad;
$custom-light: #a96cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f28ad",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 173
  },
  "hsl": {
    "h": 279.248,
    "s": 62.441,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47479,
    "c": 0.20125,
    "h": 310.6
  },
  "luminance": 0.09047
}

Semantic roles & 50–950 ramp

primary
#7F28AD
secondary
#8BC56C
accent
#E6427B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F28AD

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

Preview Lab → · Contrast checker → · Palette generator →

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