#7B2B98#7B2B98

#7B2B98 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.7% C 0.177 H 315.5°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#7B2B98
RGBrgb(123, 43, 152)
HSLhsl(284, 56%, 38%)
HSVhsv(284, 72%, 60%)
CMYKcmyk(19.1%, 71.7%, 0%, 40.4%)
CIE-LABlab(34.41, 51.10, -43.96)
CIE-LCHlch(34.41, 67.41, 319.29°)
OKLaboklab(45.71% 0.1259 -0.1237)
OKLCHoklch(45.71% 0.177 315.5)
XYZxyz(14.6988, 8.2062, 30.5094)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2B98 #48982B
analogous
#452B98 #7B2B98 #982B7E
triadic
#7B2B98 #987B2B #2B987B
tetradic
#7B2B98 #98452B #48982B #2B7E98
square
#7B2B98 #98452B #48982B #2B7E98
split-complementary
#7B2B98 #7E982B #2B9845
monochromatic
#2E1039 #541E68 #7B2B98 #A139C7 #B869D5

Accessibility & contrast

On white

7.95
#7B2B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7B2B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2B98
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2B98#FFFFFF#000000##FFFFFF
##7B2B981.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#295396
Tritanopia (blue-blind)
#79415E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b2b98;
/* rgb */ color: rgb(123, 43, 152);
/* oklch */ color: oklch(45.7% 0.177 315.5);
Tailwind
colors: {
  custom: {
    50: '#a56cb7',
    500: '#7b2b98',
    950: '#000000',
  },
}
SCSS
$custom: #7b2b98;
$custom-light: #a56cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2b98",
  "rgb": {
    "r": 123,
    "g": 43,
    "b": 152
  },
  "hsl": {
    "h": 284.037,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45705,
    "c": 0.17654,
    "h": 315.5
  },
  "luminance": 0.08206
}

Semantic roles & 50–950 ramp

primary
#7B2B98
secondary
#7BBB64
accent
#DF4971
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2B98

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

Preview Lab → · Contrast checker → · Palette generator →

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