#7B2BB2#7B2BB2

#7B2BB2 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.6% C 0.202 H 307.2°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#7B2BB2
RGBrgb(123, 43, 178)
HSLhsl(276, 61%, 43%)
HSVhsv(276, 76%, 70%)
CMYKcmyk(30.9%, 75.8%, 0%, 30.2%)
CIE-LABlab(36.28, 56.74, -56.58)
CIE-LCHlch(36.28, 80.13, 315.08°)
OKLaboklab(47.62% 0.1219 -0.1608)
OKLCHoklch(47.62% 0.202 307.2)
XYZxyz(17.0664, 9.1533, 42.9785)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2BB2 #62B22B
analogous
#382BB2 #7B2BB2 #B22BA5
triadic
#7B2BB2 #B27B2B #2BB27B
tetradic
#7B2BB2 #B2382B #62B22B #2BA5B2
square
#7B2BB2 #B2382B #62B22B #2BA5B2
split-complementary
#7B2BB2 #A5B22B #2BB238
monochromatic
#37134F #591F81 #7B2BB2 #9A48D3 #B579DF

Accessibility & contrast

On white

7.42
#7B2BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7B2BB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2BB2
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2BB2#FFFFFF#000000##FFFFFF
##7B2BB21.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0056AF
Tritanopia (blue-blind)
#724C6D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7b2bb2;
/* rgb */ color: rgb(123, 43, 178);
/* oklch */ color: oklch(47.6% 0.202 307.2);
Tailwind
colors: {
  custom: {
    50: '#a66dca',
    500: '#7b2bb2',
    950: '#000000',
  },
}
SCSS
$custom: #7b2bb2;
$custom-light: #a66dca;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2bb2",
  "rgb": {
    "r": 123,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 275.556,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4762,
    "c": 0.20176,
    "h": 307.2
  },
  "luminance": 0.09153
}

Semantic roles & 50–950 ramp

primary
#7B2BB2
secondary
#95C772
accent
#E44485
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B2BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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