#7B28B7#7B28B7

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

Color values

HEX#7B28B7
RGBrgb(123, 40, 183)
HSLhsl(275, 64%, 44%)
HSVhsv(275, 78%, 72%)
CMYKcmyk(32.8%, 78.1%, 0%, 28.2%)
CIE-LABlab(36.27, 59.01, -59.56)
CIE-LCHlch(36.27, 83.84, 314.74°)
OKLaboklab(47.73% 0.1233 -0.1695)
OKLCHoklch(47.73% 0.21 306)
XYZxyz(17.4725, 9.1476, 45.6358)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B28B7 #64B728
analogous
#3328B7 #7B28B7 #B728AB
triadic
#7B28B7 #B77B28 #28B77B
tetradic
#7B28B7 #B73328 #64B728 #28ABB7
square
#7B28B7 #B73328 #64B728 #28ABB7
split-complementary
#7B28B7 #ABB728 #28B733
monochromatic
#371253 #591D85 #7B28B7 #9A46D6 #B578E1

Accessibility & contrast

On white

7.42
#7B28B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B28B7
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B28B7#FFFFFF#000000##FFFFFF
##7B28B71.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BB
Deuteranopia (green-blind)
#0056B4
Tritanopia (blue-blind)
#704D6F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7b28b7;
/* rgb */ color: rgb(123, 40, 183);
/* oklch */ color: oklch(47.7% 0.210 306.0);
Tailwind
colors: {
  custom: {
    50: '#a76cce',
    500: '#7b28b7',
    950: '#000000',
  },
}
SCSS
$custom: #7b28b7;
$custom-light: #a76cce;
$custom-dark: #000000;
JSON
{
  "hex": "#7b28b7",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 183
  },
  "hsl": {
    "h": 274.825,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47734,
    "c": 0.20966,
    "h": 306
  },
  "luminance": 0.09147
}

Semantic roles & 50–950 ramp

primary
#7B28B7
secondary
#96C972
accent
#E74187
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7B28B7

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

Preview Lab → · Contrast checker → · Palette generator →

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