#7F28B3#7F28B3

#7F28B3 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.9% C 0.207 H 308.9°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#7F28B3
RGBrgb(127, 40, 179)
HSLhsl(278, 63%, 43%)
HSVhsv(278, 78%, 70%)
CMYKcmyk(29.1%, 77.7%, 0%, 29.8%)
CIE-LABlab(36.53, 58.83, -56.74)
CIE-LCHlch(36.53, 81.73, 316.04°)
OKLaboklab(47.94% 0.1298 -0.1611)
OKLCHoklch(47.94% 0.207 308.9)
XYZxyz(17.6462, 9.2846, 43.5016)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F28B3 #5CB328
analogous
#3A28B3 #7F28B3 #B328A1
triadic
#7F28B3 #B37F28 #28B37F
tetradic
#7F28B3 #B33A28 #5CB328 #28A1B3
square
#7F28B3 #B33A28 #5CB328 #28A1B3
split-complementary
#7F28B3 #A1B328 #28B33A
monochromatic
#38124F #5C1D81 #7F28B3 #9E43D5 #B875E0

Accessibility & contrast

On white

7.35
#7F28B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7F28B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F28B3
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F28B3#FFFFFF#000000##FFFFFF
##7F28B31.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f28b3;
/* rgb */ color: rgb(127, 40, 179);
/* oklch */ color: oklch(47.9% 0.207 308.9);
Tailwind
colors: {
  custom: {
    50: '#a96ccb',
    500: '#7f28b3',
    950: '#000000',
  },
}
SCSS
$custom: #7f28b3;
$custom-light: #a96ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f28b3",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 277.554,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47938,
    "c": 0.20687,
    "h": 308.9
  },
  "luminance": 0.09284
}

Semantic roles & 50–950 ramp

primary
#7F28B3
secondary
#90C86F
accent
#E6417F
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F28B3

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

Preview Lab → · Contrast checker → · Palette generator →

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