#7B28AB#7B28AB

#7B28AB is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.8% C 0.198 H 309.5°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#7B28AB
RGBrgb(123, 40, 171)
HSLhsl(278, 62%, 41%)
HSVhsv(278, 77%, 67%)
CMYKcmyk(28.1%, 76.6%, 0%, 32.9%)
CIE-LABlab(35.34, 56.37, -53.93)
CIE-LCHlch(35.34, 78.01, 316.27°)
OKLaboklab(46.79% 0.126 -0.153)
OKLCHoklch(46.79% 0.198 309.5)
XYZxyz(16.2764, 8.6691, 39.3361)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B28AB #58AB28
analogous
#3A28AB #7B28AB #AB289A
triadic
#7B28AB #AB7B28 #28AB7B
tetradic
#7B28AB #AB3A28 #58AB28 #289AAB
square
#7B28AB #AB3A28 #58AB28 #289AAB
split-complementary
#7B28AB #9AAB28 #28AB3A
monochromatic
#341148 #571C79 #7B28AB #9C3ED2 #B570DE

Accessibility & contrast

On white

7.68
#7B28AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7B28AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B28AB
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B28AB#FFFFFF#000000##FFFFFF
##7B28AB1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0054A8
Tritanopia (blue-blind)
#744868
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b28ab;
/* rgb */ color: rgb(123, 40, 171);
/* oklch */ color: oklch(46.8% 0.198 309.5);
Tailwind
colors: {
  custom: {
    50: '#a66bc5',
    500: '#7b28ab',
    950: '#000000',
  },
}
SCSS
$custom: #7b28ab;
$custom-light: #a66bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b28ab",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 278.015,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46793,
    "c": 0.1982,
    "h": 309.5
  },
  "luminance": 0.08669
}

Semantic roles & 50–950 ramp

primary
#7B28AB
secondary
#8BC46A
accent
#E5437E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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