#7D28B6#7D28B6

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

Color values

HEX#7D28B6
RGBrgb(125, 40, 182)
HSLhsl(276, 64%, 44%)
HSVhsv(276, 78%, 71%)
CMYKcmyk(31.3%, 78%, 0%, 28.6%)
CIE-LABlab(36.47, 59.13, -58.62)
CIE-LCHlch(36.47, 83.27, 315.25°)
OKLaboklab(47.91% 0.1264 -0.1667)
OKLCHoklch(47.91% 0.209 307.2)
XYZxyz(17.6579, 9.2552, 45.1031)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D28B6 #61B628
analogous
#3628B6 #7D28B6 #B628A8
triadic
#7D28B6 #B67D28 #28B67D
tetradic
#7D28B6 #B63628 #61B628 #28A8B6
square
#7D28B6 #B63628 #61B628 #28A8B6
split-complementary
#7D28B6 #A8B628 #28B636
monochromatic
#381252 #5B1D84 #7D28B6 #9C45D6 #B777E1

Accessibility & contrast

On white

7.37
#7D28B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7D28B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D28B6
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D28B6#FFFFFF#000000##FFFFFF
##7D28B61.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BA
Deuteranopia (green-blind)
#0056B3
Tritanopia (blue-blind)
#734C6F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7d28b6;
/* rgb */ color: rgb(125, 40, 182);
/* oklch */ color: oklch(47.9% 0.209 307.2);
Tailwind
colors: {
  custom: {
    50: '#a86ccd',
    500: '#7d28b6',
    950: '#000000',
  },
}
SCSS
$custom: #7d28b6;
$custom-light: #a86ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#7d28b6",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 182
  },
  "hsl": {
    "h": 275.915,
    "s": 63.964,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47912,
    "c": 0.20919,
    "h": 307.2
  },
  "luminance": 0.09255
}

Semantic roles & 50–950 ramp

primary
#7D28B6
secondary
#94C971
accent
#E74184
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7D28B6

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

Preview Lab → · Contrast checker → · Palette generator →

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