#7B2BA9#7B2BA9

#7B2BA9 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.9% C 0.193 H 309.8°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#7B2BA9
RGBrgb(123, 43, 169)
HSLhsl(278, 59%, 42%)
HSVhsv(278, 75%, 66%)
CMYKcmyk(27.2%, 74.6%, 0%, 33.7%)
CIE-LABlab(35.60, 54.75, -52.30)
CIE-LCHlch(35.60, 75.72, 316.31°)
OKLaboklab(46.93% 0.1236 -0.1482)
OKLCHoklch(46.93% 0.193 309.8)
XYZxyz(16.1923, 8.8036, 38.3747)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2BA9 #59A92B
analogous
#3C2BA9 #7B2BA9 #A92B98
triadic
#7B2BA9 #A97B2B #2BA97B
tetradic
#7B2BA9 #A93C2B #59A92B #2B98A9
square
#7B2BA9 #A93C2B #59A92B #2B98A9
split-complementary
#7B2BA9 #98A92B #2BA93C
monochromatic
#341247 #571F78 #7B2BA9 #9C42CF #B573DB

Accessibility & contrast

On white

7.61
#7B2BA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7B2BA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2BA9
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2BA9#FFFFFF#000000##FFFFFF
##7B2BA91.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AD
Deuteranopia (green-blind)
#0A55A6
Tritanopia (blue-blind)
#744868
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b2ba9;
/* rgb */ color: rgb(123, 43, 169);
/* oklch */ color: oklch(46.9% 0.193 309.8);
Tailwind
colors: {
  custom: {
    50: '#a66cc3',
    500: '#7b2ba9',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ba9;
$custom-light: #a66cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ba9",
  "rgb": {
    "r": 123,
    "g": 43,
    "b": 169
  },
  "hsl": {
    "h": 278.095,
    "s": 59.434,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46932,
    "c": 0.19299,
    "h": 309.8
  },
  "luminance": 0.08803
}

Semantic roles & 50–950 ramp

primary
#7B2BA9
secondary
#8CC36D
accent
#E3457F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B2BA9

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

Preview Lab → · Contrast checker → · Palette generator →

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