#7D28BA#7D28BA

#7D28BA is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.2% C 0.213 H 306.1°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#7D28BA
RGBrgb(125, 40, 186)
HSLhsl(275, 65%, 44%)
HSVhsv(275, 78%, 73%)
CMYKcmyk(32.8%, 78.5%, 0%, 27.1%)
CIE-LABlab(36.79, 60.02, -60.47)
CIE-LCHlch(36.79, 85.20, 314.78°)
OKLaboklab(48.23% 0.1254 -0.1722)
OKLCHoklch(48.23% 0.213 306.1)
XYZxyz(18.0772, 9.4229, 47.3113)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D28BA #65BA28
analogous
#3428BA #7D28BA #BA28AE
triadic
#7D28BA #BA7D28 #28BA7D
tetradic
#7D28BA #BA3428 #65BA28 #28AEBA
square
#7D28BA #BA3428 #65BA28 #28AEBA
split-complementary
#7D28BA #AEBA28 #28BA34
monochromatic
#391255 #5B1D88 #7D28BA #9B48D8 #B77AE2

Accessibility & contrast

On white

7.28
#7D28BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7D28BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D28BA
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D28BA#FFFFFF#000000##FFFFFF
##7D28BA1.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BE
Deuteranopia (green-blind)
#0057B7
Tritanopia (blue-blind)
#724E71
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7d28ba;
/* rgb */ color: rgb(125, 40, 186);
/* oklch */ color: oklch(48.2% 0.213 306.1);
Tailwind
colors: {
  custom: {
    50: '#a86cd0',
    500: '#7d28ba',
    950: '#000000',
  },
}
SCSS
$custom: #7d28ba;
$custom-light: #a86cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d28ba",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 186
  },
  "hsl": {
    "h": 274.932,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48231,
    "c": 0.21298,
    "h": 306.1
  },
  "luminance": 0.09423
}

Semantic roles & 50–950 ramp

primary
#7D28BA
secondary
#98CA73
accent
#E84086
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7D28BA

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

Preview Lab → · Contrast checker → · Palette generator →

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