#7F28B0#7F28B0

#7F28B0 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.7% C 0.204 H 309.7°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#7F28B0
RGBrgb(127, 40, 176)
HSLhsl(278, 63%, 42%)
HSVhsv(278, 77%, 69%)
CMYKcmyk(27.8%, 77.3%, 0%, 31%)
CIE-LABlab(36.30, 58.18, -55.33)
CIE-LCHlch(36.30, 80.29, 316.44°)
OKLaboklab(47.71% 0.1304 -0.157)
OKLCHoklch(47.71% 0.204 309.7)
XYZxyz(17.3461, 9.1646, 41.9210)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F28B0 #59B028
analogous
#3B28B0 #7F28B0 #B0289D
triadic
#7F28B0 #B07F28 #28B07F
tetradic
#7F28B0 #B03B28 #59B028 #289DB0
square
#7F28B0 #B03B28 #59B028 #289DB0
split-complementary
#7F28B0 #9DB028 #28B03B
monochromatic
#37114C #5B1D7E #7F28B0 #9F41D4 #B873DF

Accessibility & contrast

On white

7.41
#7F28B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7F28B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F28B0
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F28B0#FFFFFF#000000##FFFFFF
##7F28B01.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B4
Deuteranopia (green-blind)
#0057AD
Tritanopia (blue-blind)
#78496B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f28b0;
/* rgb */ color: rgb(127, 40, 176);
/* oklch */ color: oklch(47.7% 0.204 309.7);
Tailwind
colors: {
  custom: {
    50: '#a96cc8',
    500: '#7f28b0',
    950: '#000000',
  },
}
SCSS
$custom: #7f28b0;
$custom-light: #a96cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f28b0",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 278.382,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47707,
    "c": 0.20407,
    "h": 309.7
  },
  "luminance": 0.09164
}

Semantic roles & 50–950 ramp

primary
#7F28B0
secondary
#8DC66D
accent
#E6427D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F28B0

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

Preview Lab → · Contrast checker → · Palette generator →

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