#7B2EA4#7B2EA4

#7B2EA4 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.9% C 0.185 H 311.1°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#7B2EA4
RGBrgb(123, 46, 164)
HSLhsl(279, 56%, 41%)
HSVhsv(279, 72%, 64%)
CMYKcmyk(25%, 72%, 0%, 35.7%)
CIE-LABlab(35.69, 52.40, -49.17)
CIE-LCHlch(35.69, 71.86, 316.82°)
OKLaboklab(46.88% 0.1214 -0.139)
OKLCHoklch(46.88% 0.185 311.1)
XYZxyz(15.8449, 8.8457, 35.9875)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2EA4 #57A42E
analogous
#402EA4 #7B2EA4 #A42E92
triadic
#7B2EA4 #A47B2E #2EA47B
tetradic
#7B2EA4 #A4402E #57A42E #2E92A4
square
#7B2EA4 #A4402E #57A42E #2E92A4
split-complementary
#7B2EA4 #92A42E #2EA440
monochromatic
#331344 #572174 #7B2EA4 #9C45CB #B574D8

Accessibility & contrast

On white

7.58
#7B2EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7B2EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2EA4
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2EA4#FFFFFF#000000##FFFFFF
##7B2EA41.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#1C55A1
Tritanopia (blue-blind)
#764866
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b2ea4;
/* rgb */ color: rgb(123, 46, 164);
/* oklch */ color: oklch(46.9% 0.185 311.1);
Tailwind
colors: {
  custom: {
    50: '#a56ec0',
    500: '#7b2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ea4;
$custom-light: #a56ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ea4",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 279.153,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46877,
    "c": 0.18455,
    "h": 311.1
  },
  "luminance": 0.08845
}

Semantic roles & 50–950 ramp

primary
#7B2EA4
secondary
#8AC06E
accent
#DF487D
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7B2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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