#7D28B8#7D28B8

#7D28B8 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.1% C 0.211 H 306.6°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#7D28B8
RGBrgb(125, 40, 184)
HSLhsl(275, 64%, 44%)
HSVhsv(275, 78%, 72%)
CMYKcmyk(32.1%, 78.3%, 0%, 27.8%)
CIE-LABlab(36.63, 59.57, -59.55)
CIE-LCHlch(36.63, 84.23, 315.01°)
OKLaboklab(48.07% 0.1259 -0.1694)
OKLCHoklch(48.07% 0.211 306.6)
XYZxyz(17.8661, 9.3384, 46.1994)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D28B8 #63B828
analogous
#3528B8 #7D28B8 #B828AB
triadic
#7D28B8 #B87D28 #28B87D
tetradic
#7D28B8 #B83528 #63B828 #28ABB8
square
#7D28B8 #B83528 #63B828 #28ABB8
split-complementary
#7D28B8 #ABB828 #28B835
monochromatic
#391253 #5B1D86 #7D28B8 #9C46D7 #B779E2

Accessibility & contrast

On white

7.32
#7D28B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7D28B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D28B8
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D28B8#FFFFFF#000000##FFFFFF
##7D28B81.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BC
Deuteranopia (green-blind)
#0057B5
Tritanopia (blue-blind)
#734D70
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7d28b8;
/* rgb */ color: rgb(125, 40, 184);
/* oklch */ color: oklch(48.1% 0.211 306.6);
Tailwind
colors: {
  custom: {
    50: '#a86cce',
    500: '#7d28b8',
    950: '#000000',
  },
}
SCSS
$custom: #7d28b8;
$custom-light: #a86cce;
$custom-dark: #000000;
JSON
{
  "hex": "#7d28b8",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 184
  },
  "hsl": {
    "h": 275.417,
    "s": 64.286,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48071,
    "c": 0.21108,
    "h": 306.6
  },
  "luminance": 0.09338
}

Semantic roles & 50–950 ramp

primary
#7D28B8
secondary
#96CA72
accent
#E74185
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7D28B8

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

Preview Lab → · Contrast checker → · Palette generator →

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