#7E28B3#7E28B3

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

Color values

HEX#7E28B3
RGBrgb(126, 40, 179)
HSLhsl(277, 63%, 43%)
HSVhsv(277, 78%, 70%)
CMYKcmyk(29.6%, 77.7%, 0%, 29.8%)
CIE-LABlab(36.38, 58.65, -56.98)
CIE-LCHlch(36.38, 81.77, 315.83°)
OKLaboklab(47.81% 0.1284 -0.1619)
OKLCHoklch(47.81% 0.207 308.4)
XYZxyz(17.4980, 9.2082, 43.4946)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E28B3 #5DB328
analogous
#3828B3 #7E28B3 #B328A2
triadic
#7E28B3 #B37E28 #28B37E
tetradic
#7E28B3 #B33828 #5DB328 #28A2B3
square
#7E28B3 #B33828 #5DB328 #28A2B3
split-complementary
#7E28B3 #A2B328 #28B338
monochromatic
#38124F #5B1D81 #7E28B3 #9D43D5 #B775E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E28B3#FFFFFF#000000##FFFFFF
##7E28B31.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)
#0052B7
Deuteranopia (green-blind)
#0056B0
Tritanopia (blue-blind)
#764B6D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e28b3;
/* rgb */ color: rgb(126, 40, 179);
/* oklch */ color: oklch(47.8% 0.207 308.4);
Tailwind
colors: {
  custom: {
    50: '#a96ccb',
    500: '#7e28b3',
    950: '#000000',
  },
}
SCSS
$custom: #7e28b3;
$custom-light: #a96ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e28b3",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 277.122,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47807,
    "c": 0.20661,
    "h": 308.4
  },
  "luminance": 0.09208
}

Semantic roles & 50–950 ramp

primary
#7E28B3
secondary
#91C86F
accent
#E64180
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E28B3

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

Preview Lab → · Contrast checker → · Palette generator →

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