#7D28B3#7D28B3

#7D28B3 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.7% C 0.206 H 308.0°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#7D28B3
RGBrgb(125, 40, 179)
HSLhsl(277, 63%, 43%)
HSVhsv(277, 78%, 70%)
CMYKcmyk(30.2%, 77.7%, 0%, 29.8%)
CIE-LABlab(36.24, 58.48, -57.22)
CIE-LCHlch(36.24, 81.81, 315.62°)
OKLaboklab(47.68% 0.127 -0.1626)
OKLCHoklch(47.68% 0.206 308)
XYZxyz(17.3512, 9.1325, 43.4878)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D28B3 #5EB328
analogous
#3828B3 #7D28B3 #B328A3
triadic
#7D28B3 #B37D28 #28B37D
tetradic
#7D28B3 #B33828 #5EB328 #28A3B3
square
#7D28B3 #B33828 #5EB328 #28A3B3
split-complementary
#7D28B3 #A3B328 #28B338
monochromatic
#37124F #5A1D81 #7D28B3 #9C43D5 #B775E0

Accessibility & contrast

On white

7.43
#7D28B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D28B3
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D28B3#FFFFFF#000000##FFFFFF
##7D28B31.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B7
Deuteranopia (green-blind)
#0056B0
Tritanopia (blue-blind)
#744B6D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7d28b3;
/* rgb */ color: rgb(125, 40, 179);
/* oklch */ color: oklch(47.7% 0.206 308.0);
Tailwind
colors: {
  custom: {
    50: '#a86ccb',
    500: '#7d28b3',
    950: '#000000',
  },
}
SCSS
$custom: #7d28b3;
$custom-light: #a86ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d28b3",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 276.691,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47676,
    "c": 0.20634,
    "h": 308
  },
  "luminance": 0.09132
}

Semantic roles & 50–950 ramp

primary
#7D28B3
secondary
#92C86F
accent
#E64181
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D28B3

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

Preview Lab → · Contrast checker → · Palette generator →

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