#7B2EBA#7B2EBA

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

Color values

HEX#7B2EBA
RGBrgb(123, 46, 186)
HSLhsl(273, 60%, 45%)
HSVhsv(273, 75%, 73%)
CMYKcmyk(33.9%, 75.3%, 0%, 27.1%)
CIE-LABlab(37.32, 57.35, -59.62)
CIE-LCHlch(37.32, 82.73, 313.89°)
OKLaboklab(48.55% 0.1175 -0.1698)
OKLCHoklch(48.55% 0.206 304.7)
XYZxyz(18.0063, 9.7102, 47.3705)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2EBA #6DBA2E
analogous
#352EBA #7B2EBA #BA2EB3
triadic
#7B2EBA #BA7B2E #2EBA7B
tetradic
#7B2EBA #BA352E #6DBA2E #2EB3BA
square
#7B2EBA #BA352E #6DBA2E #2EB3BA
split-complementary
#7B2EBA #B3BA2E #2EBA35
monochromatic
#3A1658 #5B2289 #7B2EBA #9951D4 #B682E0

Accessibility & contrast

On white

7.14
#7B2EBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7B2EBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2EBA
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2EBA#FFFFFF#000000##FFFFFF
##7B2EBA1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b2eba;
/* rgb */ color: rgb(123, 46, 186);
/* oklch */ color: oklch(48.5% 0.206 304.7);
Tailwind
colors: {
  custom: {
    50: '#a76fd0',
    500: '#7b2eba',
    950: '#000000',
  },
}
SCSS
$custom: #7b2eba;
$custom-light: #a76fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2eba",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 186
  },
  "hsl": {
    "h": 273,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.48545,
    "c": 0.20644,
    "h": 304.7
  },
  "luminance": 0.0971
}

Semantic roles & 50–950 ramp

primary
#7B2EBA
secondary
#9EC97B
accent
#E3448C
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7B2EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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