#7B2EA3#7B2EA3

#7B2EA3 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.8% C 0.184 H 311.4°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#7B2EA3
RGBrgb(123, 46, 163)
HSLhsl(279, 56%, 41%)
HSVhsv(279, 72%, 64%)
CMYKcmyk(24.5%, 71.8%, 0%, 36.1%)
CIE-LABlab(35.62, 52.18, -48.68)
CIE-LCHlch(35.62, 71.36, 316.99°)
OKLaboklab(46.81% 0.1215 -0.1376)
OKLCHoklch(46.81% 0.184 311.4)
XYZxyz(15.7550, 8.8097, 35.5137)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2EA3 #56A32E
analogous
#402EA3 #7B2EA3 #A32E90
triadic
#7B2EA3 #A37B2E #2EA37B
tetradic
#7B2EA3 #A3402E #56A32E #2E90A3
square
#7B2EA3 #A3402E #56A32E #2E90A3
split-complementary
#7B2EA3 #90A32E #2EA340
monochromatic
#331344 #572173 #7B2EA3 #9C44CA #B674D8

Accessibility & contrast

On white

7.60
#7B2EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2EA3
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2EA3#FFFFFF#000000##FFFFFF
##7B2EA31.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A6
Deuteranopia (green-blind)
#1E55A0
Tritanopia (blue-blind)
#764865
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b2ea3;
/* rgb */ color: rgb(123, 46, 163);
/* oklch */ color: oklch(46.8% 0.184 311.4);
Tailwind
colors: {
  custom: {
    50: '#a56ebf',
    500: '#7b2ea3',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ea3;
$custom-light: #a56ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ea3",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 279.487,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46805,
    "c": 0.18356,
    "h": 311.4
  },
  "luminance": 0.08809
}

Semantic roles & 50–950 ramp

primary
#7B2EA3
secondary
#89BF6D
accent
#DF497C
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7B2EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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