#7D28B1#7D28B1

#7D28B1 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.5% C 0.204 H 308.6°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#7D28B1
RGBrgb(125, 40, 177)
HSLhsl(277, 63%, 43%)
HSVhsv(277, 77%, 69%)
CMYKcmyk(29.4%, 77.4%, 0%, 30.6%)
CIE-LABlab(36.08, 58.04, -56.28)
CIE-LCHlch(36.08, 80.85, 315.88°)
OKLaboklab(47.52% 0.1275 -0.1598)
OKLCHoklch(47.52% 0.204 308.6)
XYZxyz(17.1504, 9.0522, 42.4302)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D28B1 #5CB128
analogous
#3828B1 #7D28B1 #B128A1
triadic
#7D28B1 #B17D28 #28B17D
tetradic
#7D28B1 #B13828 #5CB128 #28A1B1
square
#7D28B1 #B13828 #5CB128 #28A1B1
split-complementary
#7D28B1 #A1B128 #28B138
monochromatic
#36114D #5A1D7F #7D28B1 #9D42D4 #B774E0

Accessibility & contrast

On white

7.47
#7D28B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7D28B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D28B1
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D28B1#FFFFFF#000000##FFFFFF
##7D28B11.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B5
Deuteranopia (green-blind)
#0056AE
Tritanopia (blue-blind)
#754A6C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7d28b1;
/* rgb */ color: rgb(125, 40, 177);
/* oklch */ color: oklch(47.5% 0.204 308.6);
Tailwind
colors: {
  custom: {
    50: '#a86cc9',
    500: '#7d28b1',
    950: '#000000',
  },
}
SCSS
$custom: #7d28b1;
$custom-light: #a86cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d28b1",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 277.226,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4752,
    "c": 0.20445,
    "h": 308.6
  },
  "luminance": 0.09052
}

Semantic roles & 50–950 ramp

primary
#7D28B1
secondary
#90C76E
accent
#E64280
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D28B1

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

Preview Lab → · Contrast checker → · Palette generator →

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