#7B2EB8#7B2EB8

#7B2EB8 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.4% C 0.204 H 305.2°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#7B2EB8
RGBrgb(123, 46, 184)
HSLhsl(273, 60%, 45%)
HSVhsv(273, 75%, 72%)
CMYKcmyk(33.2%, 75%, 0%, 27.8%)
CIE-LABlab(37.16, 56.89, -58.69)
CIE-LCHlch(37.16, 81.74, 314.11°)
OKLaboklab(48.39% 0.1179 -0.167)
OKLCHoklch(48.39% 0.204 305.2)
XYZxyz(17.7952, 9.6258, 46.2586)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2EB8 #6BB82E
analogous
#362EB8 #7B2EB8 #B82EB0
triadic
#7B2EB8 #B87B2E #2EB87B
tetradic
#7B2EB8 #B8362E #6BB82E #2EB0B8
square
#7B2EB8 #B8362E #6BB82E #2EB0B8
split-complementary
#7B2EB8 #B0B82E #2EB836
monochromatic
#3A1656 #5A2287 #7B2EB8 #9950D3 #B681DF

Accessibility & contrast

On white

7.18
#7B2EB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2EB8
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2EB8#FFFFFF#000000##FFFFFF
##7B2EB81.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0058B5
Tritanopia (blue-blind)
#705071
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7b2eb8;
/* rgb */ color: rgb(123, 46, 184);
/* oklch */ color: oklch(48.4% 0.204 305.2);
Tailwind
colors: {
  custom: {
    50: '#a76fce',
    500: '#7b2eb8',
    950: '#000000',
  },
}
SCSS
$custom: #7b2eb8;
$custom-light: #a76fce;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2eb8",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 273.478,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48387,
    "c": 0.20445,
    "h": 305.2
  },
  "luminance": 0.09626
}

Semantic roles & 50–950 ramp

primary
#7B2EB8
secondary
#9CC879
accent
#E3458B
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7B2EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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