#7B2CB7#7B2CB7

#7B2CB7 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.1% C 0.206 H 305.7°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#7B2CB7
RGBrgb(123, 44, 183)
HSLhsl(274, 61%, 45%)
HSVhsv(274, 76%, 72%)
CMYKcmyk(32.8%, 76%, 0%, 28.2%)
CIE-LABlab(36.80, 57.47, -58.69)
CIE-LCHlch(36.80, 82.14, 314.40°)
OKLaboklab(48.11% 0.1199 -0.167)
OKLCHoklch(48.11% 0.206 305.7)
XYZxyz(17.6144, 9.4314, 45.6830)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2CB7 #68B72C
analogous
#362CB7 #7B2CB7 #B72CAD
triadic
#7B2CB7 #B77B2C #2CB77B
tetradic
#7B2CB7 #B7362C #68B72C #2CADB7
square
#7B2CB7 #B7362C #68B72C #2CADB7
split-complementary
#7B2CB7 #ADB72C #2CB736
monochromatic
#391454 #5A2086 #7B2CB7 #994CD4 #B57EE0

Accessibility & contrast

On white

7.28
#7B2CB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7B2CB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2CB7
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2CB7#FFFFFF#000000##FFFFFF
##7B2CB71.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BB
Deuteranopia (green-blind)
#0057B4
Tritanopia (blue-blind)
#704F70
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7b2cb7;
/* rgb */ color: rgb(123, 44, 183);
/* oklch */ color: oklch(48.1% 0.206 305.7);
Tailwind
colors: {
  custom: {
    50: '#a76ece',
    500: '#7b2cb7',
    950: '#000000',
  },
}
SCSS
$custom: #7b2cb7;
$custom-light: #a76ece;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2cb7",
  "rgb": {
    "r": 123,
    "g": 44,
    "b": 183
  },
  "hsl": {
    "h": 274.101,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4811,
    "c": 0.2056,
    "h": 305.7
  },
  "luminance": 0.09431
}

Semantic roles & 50–950 ramp

primary
#7B2CB7
secondary
#9AC876
accent
#E44389
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7B2CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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