#7B2EA6#7B2EA6

#7B2EA6 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.0% C 0.187 H 310.5°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7B2EA6
RGBrgb(123, 46, 166)
HSLhsl(279, 57%, 42%)
HSVhsv(279, 72%, 65%)
CMYKcmyk(25.9%, 72.3%, 0%, 34.9%)
CIE-LABlab(35.83, 52.84, -50.14)
CIE-LCHlch(35.83, 72.84, 316.50°)
OKLaboklab(47.02% 0.1211 -0.1419)
OKLCHoklch(47.02% 0.187 310.5)
XYZxyz(16.0270, 8.9185, 36.9462)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2EA6 #59A62E
analogous
#3F2EA6 #7B2EA6 #A62E95
triadic
#7B2EA6 #A67B2E #2EA67B
tetradic
#7B2EA6 #A63F2E #59A62E #2E95A6
square
#7B2EA6 #A63F2E #59A62E #2E95A6
split-complementary
#7B2EA6 #95A62E #2EA63F
monochromatic
#341346 #572176 #7B2EA6 #9C46CC #B576D9

Accessibility & contrast

On white

7.54
#7B2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7B2EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2EA6
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2EA6#FFFFFF#000000##FFFFFF
##7B2EA61.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#1855A3
Tritanopia (blue-blind)
#754967
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b2ea6;
/* rgb */ color: rgb(123, 46, 166);
/* oklch */ color: oklch(47.0% 0.187 310.5);
Tailwind
colors: {
  custom: {
    50: '#a56ec1',
    500: '#7b2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ea6;
$custom-light: #a56ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ea6",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 278.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47022,
    "c": 0.18654,
    "h": 310.5
  },
  "luminance": 0.08918
}

Semantic roles & 50–950 ramp

primary
#7B2EA6
secondary
#8CC16F
accent
#E0487E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7B2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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