#7B28A9#7B28A9

#7B28A9 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.6% C 0.196 H 310.1°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#7B28A9
RGBrgb(123, 40, 169)
HSLhsl(279, 62%, 41%)
HSVhsv(279, 76%, 66%)
CMYKcmyk(27.2%, 76.3%, 0%, 33.7%)
CIE-LABlab(35.19, 55.93, -52.97)
CIE-LCHlch(35.19, 77.04, 316.56°)
OKLaboklab(46.64% 0.1264 -0.1502)
OKLCHoklch(46.64% 0.196 310.1)
XYZxyz(16.0872, 8.5935, 38.3397)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B28A9 #56A928
analogous
#3B28A9 #7B28A9 #A92896
triadic
#7B28A9 #A97B28 #28A97B
tetradic
#7B28A9 #A93B28 #56A928 #2896A9
square
#7B28A9 #A93B28 #56A928 #2896A9
split-complementary
#7B28A9 #96A928 #28A93B
monochromatic
#331146 #571C78 #7B28A9 #9C3DD1 #B66FDD

Accessibility & contrast

On white

7.72
#7B28A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7B28A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B28A9
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B28A9#FFFFFF#000000##FFFFFF
##7B28A91.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAD
Deuteranopia (green-blind)
#0254A6
Tritanopia (blue-blind)
#744767
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b28a9;
/* rgb */ color: rgb(123, 40, 169);
/* oklch */ color: oklch(46.6% 0.196 310.1);
Tailwind
colors: {
  custom: {
    50: '#a66bc3',
    500: '#7b28a9',
    950: '#000000',
  },
}
SCSS
$custom: #7b28a9;
$custom-light: #a66bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b28a9",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 278.605,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.4664,
    "c": 0.19629,
    "h": 310.1
  },
  "luminance": 0.08593
}

Semantic roles & 50–950 ramp

primary
#7B28A9
secondary
#89C469
accent
#E5437D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B28A9

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

Preview Lab → · Contrast checker → · Palette generator →

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