#7B2EB9#7B2EB9

#7B2EB9 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.205 H 304.9°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#7B2EB9
RGBrgb(123, 46, 185)
HSLhsl(273, 60%, 45%)
HSVhsv(273, 75%, 73%)
CMYKcmyk(33.5%, 75.1%, 0%, 27.5%)
CIE-LABlab(37.24, 57.12, -59.16)
CIE-LCHlch(37.24, 82.23, 314.00°)
OKLaboklab(48.47% 0.1177 -0.1684)
OKLCHoklch(48.47% 0.205 304.9)
XYZxyz(17.9003, 9.6678, 46.8126)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2EB9 #6CB92E
analogous
#352EB9 #7B2EB9 #B92EB2
triadic
#7B2EB9 #B97B2E #2EB97B
tetradic
#7B2EB9 #B9352E #6CB92E #2EB2B9
square
#7B2EB9 #B9352E #6CB92E #2EB2B9
split-complementary
#7B2EB9 #B2B92E #2EB935
monochromatic
#3A1657 #5A2288 #7B2EB9 #9951D4 #B682E0

Accessibility & contrast

On white

7.16
#7B2EB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7B2EB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2EB9
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2EB9#FFFFFF#000000##FFFFFF
##7B2EB91.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#0058B6
Tritanopia (blue-blind)
#6F5172
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7b2eb9;
/* rgb */ color: rgb(123, 46, 185);
/* oklch */ color: oklch(48.5% 0.205 304.9);
Tailwind
colors: {
  custom: {
    50: '#a76fcf',
    500: '#7b2eb9',
    950: '#000000',
  },
}
SCSS
$custom: #7b2eb9;
$custom-light: #a76fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2eb9",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 185
  },
  "hsl": {
    "h": 273.237,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48466,
    "c": 0.20545,
    "h": 304.9
  },
  "luminance": 0.09668
}

Semantic roles & 50–950 ramp

primary
#7B2EB9
secondary
#9DC97A
accent
#E3448B
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7B2EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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