#7B2A98#7B2A98

#7B2A98 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.6% C 0.178 H 315.6°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#7B2A98
RGBrgb(123, 42, 152)
HSLhsl(284, 57%, 38%)
HSVhsv(284, 72%, 60%)
CMYKcmyk(19.1%, 72.4%, 0%, 40.4%)
CIE-LABlab(34.26, 51.52, -44.20)
CIE-LCHlch(34.26, 67.88, 319.37°)
OKLaboklab(45.6% 0.127 -0.1244)
OKLCHoklch(45.6% 0.178 315.6)
XYZxyz(14.6629, 8.1344, 30.4974)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2A98 #47982A
analogous
#442A98 #7B2A98 #982A7E
triadic
#7B2A98 #987B2A #2A987B
tetradic
#7B2A98 #98442A #47982A #2A7E98
square
#7B2A98 #98442A #47982A #2A7E98
split-complementary
#7B2A98 #7E982A #2A9844
monochromatic
#2D1038 #541D68 #7B2A98 #A237C8 #B867D5

Accessibility & contrast

On white

7.99
#7B2A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7B2A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2A98
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2A98#FFFFFF#000000##FFFFFF
##7B2A981.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b2a98;
/* rgb */ color: rgb(123, 42, 152);
/* oklch */ color: oklch(45.6% 0.178 315.6);
Tailwind
colors: {
  custom: {
    50: '#a56bb7',
    500: '#7b2a98',
    950: '#000000',
  },
}
SCSS
$custom: #7b2a98;
$custom-light: #a56bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2a98",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 284.182,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.456,
    "c": 0.17777,
    "h": 315.6
  },
  "luminance": 0.08134
}

Semantic roles & 50–950 ramp

primary
#7B2A98
secondary
#7ABB62
accent
#E04870
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2A98

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

Preview Lab → · Contrast checker → · Palette generator →

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