#7F28AC#7F28AC

#7F28AC is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.4% C 0.200 H 310.9°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#7F28AC
RGBrgb(127, 40, 172)
HSLhsl(280, 62%, 42%)
HSVhsv(280, 77%, 67%)
CMYKcmyk(26.2%, 76.7%, 0%, 32.5%)
CIE-LABlab(36.00, 57.33, -53.42)
CIE-LCHlch(36.00, 78.36, 317.02°)
OKLaboklab(47.4% 0.1312 -0.1514)
OKLCHoklch(47.4% 0.2 310.9)
XYZxyz(16.9562, 9.0086, 39.8673)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F28AC #55AC28
analogous
#3D28AC #7F28AC #AC2897
triadic
#7F28AC #AC7F28 #28AC7F
tetradic
#7F28AC #AC3D28 #55AC28 #2897AC
square
#7F28AC #AC3D28 #55AC28 #2897AC
split-complementary
#7F28AC #97AC28 #28AC3D
monochromatic
#361149 #5A1C7A #7F28AC #A03FD2 #B971DE

Accessibility & contrast

On white

7.50
#7F28AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7F28AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F28AC
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F28AC#FFFFFF#000000##FFFFFF
##7F28AC1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B0
Deuteranopia (green-blind)
#0756A9
Tritanopia (blue-blind)
#794869
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f28ac;
/* rgb */ color: rgb(127, 40, 172);
/* oklch */ color: oklch(47.4% 0.200 310.9);
Tailwind
colors: {
  custom: {
    50: '#a96cc6',
    500: '#7f28ac',
    950: '#000000',
  },
}
SCSS
$custom: #7f28ac;
$custom-light: #a96cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f28ac",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 279.545,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47403,
    "c": 0.20032,
    "h": 310.9
  },
  "luminance": 0.09008
}

Semantic roles & 50–950 ramp

primary
#7F28AC
secondary
#8AC56B
accent
#E5427A
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F28AC

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

Preview Lab → · Contrast checker → · Palette generator →

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