#7B2FA9#7B2FA9

#7B2FA9 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.3% C 0.188 H 309.4°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#7B2FA9
RGBrgb(123, 47, 169)
HSLhsl(277, 56%, 42%)
HSVhsv(277, 72%, 66%)
CMYKcmyk(27.2%, 72.2%, 0%, 33.7%)
CIE-LABlab(36.19, 53.08, -51.35)
CIE-LCHlch(36.19, 73.85, 315.95°)
OKLaboklab(47.35% 0.1196 -0.1454)
OKLCHoklch(47.35% 0.188 309.4)
XYZxyz(16.3449, 9.1089, 38.4256)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2FA9 #5DA92F
analogous
#3E2FA9 #7B2FA9 #A92F9A
triadic
#7B2FA9 #A97B2F #2FA97B
tetradic
#7B2FA9 #A93E2F #5DA92F #2F9AA9
square
#7B2FA9 #A93E2F #5DA92F #2F9AA9
split-complementary
#7B2FA9 #9AA92F #2FA93E
monochromatic
#351449 #582279 #7B2FA9 #9B49CC #B579DA

Accessibility & contrast

On white

7.44
#7B2FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7B2FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2FA9
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2FA9#FFFFFF#000000##FFFFFF
##7B2FA91.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#1456A6
Tritanopia (blue-blind)
#744B69
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7b2fa9;
/* rgb */ color: rgb(123, 47, 169);
/* oklch */ color: oklch(47.3% 0.188 309.4);
Tailwind
colors: {
  custom: {
    50: '#a56ec3',
    500: '#7b2fa9',
    950: '#000000',
  },
}
SCSS
$custom: #7b2fa9;
$custom-light: #a56ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2fa9",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 277.377,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4735,
    "c": 0.18832,
    "h": 309.4
  },
  "luminance": 0.09109
}

Semantic roles & 50–950 ramp

primary
#7B2FA9
secondary
#90C272
accent
#E04881
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B2FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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