#7B28BD#7B28BD

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

Color values

HEX#7B28BD
RGBrgb(123, 40, 189)
HSLhsl(273, 65%, 45%)
HSVhsv(273, 79%, 74%)
CMYKcmyk(34.9%, 78.8%, 0%, 25.9%)
CIE-LABlab(36.75, 60.35, -62.31)
CIE-LCHlch(36.75, 86.75, 314.08°)
OKLaboklab(48.22% 0.1218 -0.1776)
OKLCHoklch(48.22% 0.215 304.4)
XYZxyz(18.1104, 9.4027, 48.9951)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B28BD #6ABD28
analogous
#3028BD #7B28BD #BD28B5
triadic
#7B28BD #BD7B28 #28BD7B
tetradic
#7B28BD #BD3028 #6ABD28 #28B5BD
square
#7B28BD #BD3028 #6ABD28 #28B5BD
split-complementary
#7B28BD #B5BD28 #28BD30
monochromatic
#391358 #5A1D8A #7B28BD #994AD9 #B67CE3

Accessibility & contrast

On white

7.29
#7B28BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B28BD
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B28BD#FFFFFF#000000##FFFFFF
##7B28BD1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#0056BA
Tritanopia (blue-blind)
#6E5073
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7b28bd;
/* rgb */ color: rgb(123, 40, 189);
/* oklch */ color: oklch(48.2% 0.215 304.4);
Tailwind
colors: {
  custom: {
    50: '#a76cd2',
    500: '#7b28bd',
    950: '#000000',
  },
}
SCSS
$custom: #7b28bd;
$custom-light: #a76cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b28bd",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 189
  },
  "hsl": {
    "h": 273.423,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4822,
    "c": 0.21539,
    "h": 304.4
  },
  "luminance": 0.09403
}

Semantic roles & 50–950 ramp

primary
#7B28BD
secondary
#9BCB75
accent
#E8408A
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100714
muted
#7F7A83

Preview Lab

Preview with #7B28BD

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

Preview Lab → · Contrast checker → · Palette generator →

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