#7B28B9#7B28B9

#7B28B9 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.9% C 0.212 H 305.5°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#7B28B9
RGBrgb(123, 40, 185)
HSLhsl(274, 64%, 44%)
HSVhsv(274, 78%, 73%)
CMYKcmyk(33.5%, 78.4%, 0%, 27.5%)
CIE-LABlab(36.43, 59.46, -60.48)
CIE-LCHlch(36.43, 84.81, 314.51°)
OKLaboklab(47.9% 0.1229 -0.1722)
OKLCHoklch(47.9% 0.212 305.5)
XYZxyz(17.6822, 9.2314, 46.7399)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B28B9 #66B928
analogous
#3328B9 #7B28B9 #B928AF
triadic
#7B28B9 #B97B28 #28B97B
tetradic
#7B28B9 #B93328 #66B928 #28AFB9
square
#7B28B9 #B93328 #66B928 #28AFB9
split-complementary
#7B28B9 #AFB928 #28B933
monochromatic
#381254 #5A1D87 #7B28B9 #9A47D7 #B579E2

Accessibility & contrast

On white

7.38
#7B28B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B28B9
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B28B9#FFFFFF#000000##FFFFFF
##7B28B91.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BD
Deuteranopia (green-blind)
#0056B6
Tritanopia (blue-blind)
#6F4E70
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7b28b9;
/* rgb */ color: rgb(123, 40, 185);
/* oklch */ color: oklch(47.9% 0.212 305.5);
Tailwind
colors: {
  custom: {
    50: '#a76ccf',
    500: '#7b28b9',
    950: '#000000',
  },
}
SCSS
$custom: #7b28b9;
$custom-light: #a76ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b28b9",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 185
  },
  "hsl": {
    "h": 274.345,
    "s": 64.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47895,
    "c": 0.21157,
    "h": 305.5
  },
  "luminance": 0.09231
}

Semantic roles & 50–950 ramp

primary
#7B28B9
secondary
#98CA73
accent
#E74088
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7B28B9

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

Preview Lab → · Contrast checker → · Palette generator →

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