#7B2EA2#7B2EA2

#7B2EA2 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.7% C 0.183 H 311.8°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#7B2EA2
RGBrgb(123, 46, 162)
HSLhsl(280, 56%, 41%)
HSVhsv(280, 72%, 64%)
CMYKcmyk(24.1%, 71.6%, 0%, 36.5%)
CIE-LABlab(35.55, 51.96, -48.19)
CIE-LCHlch(35.55, 70.87, 317.16°)
OKLaboklab(46.73% 0.1216 -0.1362)
OKLCHoklch(46.73% 0.183 311.8)
XYZxyz(15.6658, 8.7740, 35.0437)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2EA2 #55A22E
analogous
#412EA2 #7B2EA2 #A22E8F
triadic
#7B2EA2 #A27B2E #2EA27B
tetradic
#7B2EA2 #A2412E #55A22E #2E8FA2
square
#7B2EA2 #A2412E #55A22E #2E8FA2
split-complementary
#7B2EA2 #8FA22E #2EA241
monochromatic
#331343 #572072 #7B2EA2 #9D43CA #B673D7

Accessibility & contrast

On white

7.62
#7B2EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7B2EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2EA2
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2EA2#FFFFFF#000000##FFFFFF
##7B2EA21.007.622.757.62
#FFFFFF7.621.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#1F559F
Tritanopia (blue-blind)
#764765
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b2ea2;
/* rgb */ color: rgb(123, 46, 162);
/* oklch */ color: oklch(46.7% 0.183 311.8);
Tailwind
colors: {
  custom: {
    50: '#a56ebe',
    500: '#7b2ea2',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ea2;
$custom-light: #a56ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ea2",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 279.828,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46733,
    "c": 0.18257,
    "h": 311.8
  },
  "luminance": 0.08774
}

Semantic roles & 50–950 ramp

primary
#7B2EA2
secondary
#88BF6D
accent
#DF497B
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B2EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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