#7B2EA5#7B2EA5

#7B2EA5 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.9% C 0.186 H 310.8°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#7B2EA5
RGBrgb(123, 46, 165)
HSLhsl(279, 56%, 41%)
HSVhsv(279, 72%, 65%)
CMYKcmyk(25.5%, 72.1%, 0%, 35.3%)
CIE-LABlab(35.76, 52.62, -49.65)
CIE-LCHlch(35.76, 72.35, 316.66°)
OKLaboklab(46.95% 0.1212 -0.1405)
OKLCHoklch(46.95% 0.186 310.8)
XYZxyz(15.9356, 8.8819, 36.4649)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2EA5 #58A52E
analogous
#402EA5 #7B2EA5 #A52E94
triadic
#7B2EA5 #A57B2E #2EA57B
tetradic
#7B2EA5 #A5402E #58A52E #2E94A5
square
#7B2EA5 #A5402E #58A52E #2E94A5
split-complementary
#7B2EA5 #94A52E #2EA540
monochromatic
#341345 #572175 #7B2EA5 #9C45CB #B575D8

Accessibility & contrast

On white

7.56
#7B2EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2EA5
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2EA5#FFFFFF#000000##FFFFFF
##7B2EA51.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#1A55A2
Tritanopia (blue-blind)
#754866
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b2ea5;
/* rgb */ color: rgb(123, 46, 165);
/* oklch */ color: oklch(46.9% 0.186 310.8);
Tailwind
colors: {
  custom: {
    50: '#a56ec0',
    500: '#7b2ea5',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ea5;
$custom-light: #a56ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ea5",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 278.824,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46949,
    "c": 0.18554,
    "h": 310.8
  },
  "luminance": 0.08882
}

Semantic roles & 50–950 ramp

primary
#7B2EA5
secondary
#8BC06F
accent
#E0487E
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7B2EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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