#7B2EB7#7B2EB7

#7B2EB7 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.3% C 0.203 H 305.5°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#7B2EB7
RGBrgb(123, 46, 183)
HSLhsl(274, 60%, 45%)
HSVhsv(274, 75%, 72%)
CMYKcmyk(32.8%, 74.9%, 0%, 28.2%)
CIE-LABlab(37.09, 56.66, -58.23)
CIE-LCHlch(37.09, 81.25, 314.22°)
OKLaboklab(48.31% 0.1181 -0.1657)
OKLCHoklch(48.31% 0.203 305.5)
XYZxyz(17.6907, 9.5840, 45.7085)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2EB7 #6AB72E
analogous
#372EB7 #7B2EB7 #B72EAE
triadic
#7B2EB7 #B77B2E #2EB77B
tetradic
#7B2EB7 #B7372E #6AB72E #2EAEB7
square
#7B2EB7 #B7372E #6AB72E #2EAEB7
split-complementary
#7B2EB7 #AEB72E #2EB737
monochromatic
#391555 #5A2286 #7B2EB7 #994FD3 #B680DF

Accessibility & contrast

On white

7.20
#7B2EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7B2EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2EB7
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2EB7#FFFFFF#000000##FFFFFF
##7B2EB71.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0057B4
Tritanopia (blue-blind)
#705071
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7b2eb7;
/* rgb */ color: rgb(123, 46, 183);
/* oklch */ color: oklch(48.3% 0.203 305.5);
Tailwind
colors: {
  custom: {
    50: '#a76fcd',
    500: '#7b2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #7b2eb7;
$custom-light: #a76fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2eb7",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 273.723,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48309,
    "c": 0.20346,
    "h": 305.5
  },
  "luminance": 0.09584
}

Semantic roles & 50–950 ramp

primary
#7B2EB7
secondary
#9BC879
accent
#E3458A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7B2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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