#7B2BB7#7B2BB7

#7B2BB7 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.0% C 0.207 H 305.8°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#7B2BB7
RGBrgb(123, 43, 183)
HSLhsl(274, 62%, 44%)
HSVhsv(274, 77%, 72%)
CMYKcmyk(32.8%, 76.5%, 0%, 28.2%)
CIE-LABlab(36.66, 57.87, -58.91)
CIE-LCHlch(36.66, 82.58, 314.49°)
OKLaboklab(48.01% 0.1208 -0.1677)
OKLCHoklch(48.01% 0.207 305.8)
XYZxyz(17.5776, 9.3577, 45.6708)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2BB7 #67B72B
analogous
#352BB7 #7B2BB7 #B72BAD
triadic
#7B2BB7 #B77B2B #2BB77B
tetradic
#7B2BB7 #B7352B #67B72B #2BADB7
square
#7B2BB7 #B7352B #67B72B #2BADB7
split-complementary
#7B2BB7 #ADB72B #2BB735
monochromatic
#381454 #5A1F85 #7B2BB7 #994BD5 #B57CE0

Accessibility & contrast

On white

7.31
#7B2BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7B2BB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2BB7
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2BB7#FFFFFF#000000##FFFFFF
##7B2BB71.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BB
Deuteranopia (green-blind)
#0056B4
Tritanopia (blue-blind)
#704E70
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7b2bb7;
/* rgb */ color: rgb(123, 43, 183);
/* oklch */ color: oklch(48.0% 0.207 305.8);
Tailwind
colors: {
  custom: {
    50: '#a76dce',
    500: '#7b2bb7',
    950: '#000000',
  },
}
SCSS
$custom: #7b2bb7;
$custom-light: #a76dce;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2bb7",
  "rgb": {
    "r": 123,
    "g": 43,
    "b": 183
  },
  "hsl": {
    "h": 274.286,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48013,
    "c": 0.20664,
    "h": 305.8
  },
  "luminance": 0.09358
}

Semantic roles & 50–950 ramp

primary
#7B2BB7
secondary
#99C975
accent
#E54388
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7B2BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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