#7B28BA#7B28BA

#7B28BA is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.0% C 0.213 H 305.2°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#7B28BA
RGBrgb(123, 40, 186)
HSLhsl(274, 65%, 44%)
HSVhsv(274, 78%, 73%)
CMYKcmyk(33.9%, 78.5%, 0%, 27.1%)
CIE-LABlab(36.51, 59.68, -60.94)
CIE-LCHlch(36.51, 85.30, 314.40°)
OKLaboklab(47.98% 0.1226 -0.1736)
OKLCHoklch(47.98% 0.213 305.2)
XYZxyz(17.7881, 9.2738, 47.2978)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B28BA #67BA28
analogous
#3228BA #7B28BA #BA28B0
triadic
#7B28BA #BA7B28 #28BA7B
tetradic
#7B28BA #BA3228 #67BA28 #28B0BA
square
#7B28BA #BA3228 #67BA28 #28B0BA
split-complementary
#7B28BA #B0BA28 #28BA32
monochromatic
#381255 #5A1D88 #7B28BA #9948D8 #B57AE2

Accessibility & contrast

On white

7.36
#7B28BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B28BA
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B28BA#FFFFFF#000000##FFFFFF
##7B28BA1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BE
Deuteranopia (green-blind)
#0056B7
Tritanopia (blue-blind)
#6F4E71
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7b28ba;
/* rgb */ color: rgb(123, 40, 186);
/* oklch */ color: oklch(48.0% 0.213 305.2);
Tailwind
colors: {
  custom: {
    50: '#a76cd0',
    500: '#7b28ba',
    950: '#000000',
  },
}
SCSS
$custom: #7b28ba;
$custom-light: #a76cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b28ba",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 186
  },
  "hsl": {
    "h": 274.11,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.47976,
    "c": 0.21253,
    "h": 305.2
  },
  "luminance": 0.09274
}

Semantic roles & 50–950 ramp

primary
#7B28BA
secondary
#99CA73
accent
#E84088
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7B28BA

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

Preview Lab → · Contrast checker → · Palette generator →

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