#7B2EB6#7B2EB6

#7B2EB6 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.202 H 305.8°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#7B2EB6
RGBrgb(123, 46, 182)
HSLhsl(274, 60%, 45%)
HSVhsv(274, 75%, 71%)
CMYKcmyk(32.4%, 74.7%, 0%, 28.6%)
CIE-LABlab(37.01, 56.43, -57.76)
CIE-LCHlch(37.01, 80.75, 314.33°)
OKLaboklab(48.23% 0.1183 -0.1643)
OKLCHoklch(48.23% 0.202 305.8)
XYZxyz(17.5870, 9.5425, 45.1623)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2EB6 #69B62E
analogous
#372EB6 #7B2EB6 #B62EAD
triadic
#7B2EB6 #B67B2E #2EB67B
tetradic
#7B2EB6 #B6372E #69B62E #2EADB6
square
#7B2EB6 #B6372E #69B62E #2EADB6
split-complementary
#7B2EB6 #ADB62E #2EB637
monochromatic
#391554 #5A2285 #7B2EB6 #994FD2 #B680DF

Accessibility & contrast

On white

7.22
#7B2EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7B2EB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2EB6
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2EB6#FFFFFF#000000##FFFFFF
##7B2EB61.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0057B3
Tritanopia (blue-blind)
#704F70
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7b2eb6;
/* rgb */ color: rgb(123, 46, 182);
/* oklch */ color: oklch(48.2% 0.202 305.8);
Tailwind
colors: {
  custom: {
    50: '#a66fcd',
    500: '#7b2eb6',
    950: '#000000',
  },
}
SCSS
$custom: #7b2eb6;
$custom-light: #a66fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2eb6",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 273.971,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48231,
    "c": 0.20246,
    "h": 305.8
  },
  "luminance": 0.09542
}

Semantic roles & 50–950 ramp

primary
#7B2EB6
secondary
#9BC878
accent
#E34589
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7B2EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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