#7D28B4#7D28B4

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

Color values

HEX#7D28B4
RGBrgb(125, 40, 180)
HSLhsl(276, 64%, 43%)
HSVhsv(276, 78%, 71%)
CMYKcmyk(30.6%, 77.8%, 0%, 29.4%)
CIE-LABlab(36.32, 58.69, -57.69)
CIE-LCHlch(36.32, 82.30, 315.49°)
OKLaboklab(47.75% 0.1268 -0.164)
OKLCHoklch(47.75% 0.207 307.7)
XYZxyz(17.4527, 9.1731, 44.0223)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D28B4 #5FB428
analogous
#3728B4 #7D28B4 #B428A5
triadic
#7D28B4 #B47D28 #28B47D
tetradic
#7D28B4 #B43728 #5FB428 #28A5B4
square
#7D28B4 #B43728 #5FB428 #28A5B4
split-complementary
#7D28B4 #A5B428 #28B437
monochromatic
#371250 #5A1D82 #7D28B4 #9C44D5 #B776E1

Accessibility & contrast

On white

7.41
#7D28B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7D28B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D28B4
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D28B4#FFFFFF#000000##FFFFFF
##7D28B41.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0056B1
Tritanopia (blue-blind)
#744B6D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7d28b4;
/* rgb */ color: rgb(125, 40, 180);
/* oklch */ color: oklch(47.8% 0.207 307.7);
Tailwind
colors: {
  custom: {
    50: '#a86ccb',
    500: '#7d28b4',
    950: '#000000',
  },
}
SCSS
$custom: #7d28b4;
$custom-light: #a86ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d28b4",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 180
  },
  "hsl": {
    "h": 276.429,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47754,
    "c": 0.20729,
    "h": 307.7
  },
  "luminance": 0.09173
}

Semantic roles & 50–950 ramp

primary
#7D28B4
secondary
#92C870
accent
#E74182
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D28B4

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

Preview Lab → · Contrast checker → · Palette generator →

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