#7B28B6#7B28B6

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

Color values

HEX#7B28B6
RGBrgb(123, 40, 182)
HSLhsl(275, 64%, 44%)
HSVhsv(275, 78%, 71%)
CMYKcmyk(32.4%, 78%, 0%, 28.6%)
CIE-LABlab(36.19, 58.79, -59.09)
CIE-LCHlch(36.19, 83.36, 314.85°)
OKLaboklab(47.65% 0.1236 -0.1682)
OKLCHoklch(47.65% 0.209 306.3)
XYZxyz(17.3688, 9.1061, 45.0895)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B28B6 #63B628
analogous
#3428B6 #7B28B6 #B628AA
triadic
#7B28B6 #B67B28 #28B67B
tetradic
#7B28B6 #B63428 #63B628 #28AAB6
square
#7B28B6 #B63428 #63B628 #28AAB6
split-complementary
#7B28B6 #AAB628 #28B634
monochromatic
#371252 #591D84 #7B28B6 #9A45D6 #B577E1

Accessibility & contrast

On white

7.44
#7B28B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7B28B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B28B6
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B28B6#FFFFFF#000000##FFFFFF
##7B28B61.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BA
Deuteranopia (green-blind)
#0055B3
Tritanopia (blue-blind)
#704D6F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7b28b6;
/* rgb */ color: rgb(123, 40, 182);
/* oklch */ color: oklch(47.7% 0.209 306.3);
Tailwind
colors: {
  custom: {
    50: '#a76ccd',
    500: '#7b28b6',
    950: '#000000',
  },
}
SCSS
$custom: #7b28b6;
$custom-light: #a76ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#7b28b6",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 182
  },
  "hsl": {
    "h": 275.07,
    "s": 63.964,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47654,
    "c": 0.2087,
    "h": 306.3
  },
  "luminance": 0.09106
}

Semantic roles & 50–950 ramp

primary
#7B28B6
secondary
#95C971
accent
#E74186
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7B28B6

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

Preview Lab → · Contrast checker → · Palette generator →

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