#7B2A94#7B2A94

#7B2A94 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.3% C 0.174 H 317.0°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#7B2A94
RGBrgb(123, 42, 148)
HSLhsl(286, 56%, 37%)
HSVhsv(286, 72%, 58%)
CMYKcmyk(16.9%, 71.6%, 0%, 42%)
CIE-LABlab(33.99, 50.69, -42.19)
CIE-LCHlch(33.99, 65.95, 320.23°)
OKLaboklab(45.32% 0.1273 -0.1185)
OKLCHoklch(45.32% 0.174 317)
XYZxyz(14.3408, 8.0056, 28.8011)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2A94 #43942A
analogous
#462A94 #7B2A94 #942A78
triadic
#7B2A94 #947B2A #2A947B
tetradic
#7B2A94 #94462A #43942A #2A7894
square
#7B2A94 #94462A #43942A #2A7894
split-complementary
#7B2A94 #78942A #2A9446
monochromatic
#2C0F35 #531C64 #7B2A94 #A338C4 #B965D3

Accessibility & contrast

On white

8.07
#7B2A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7B2A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2A94
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2A94#FFFFFF#000000##FFFFFF
##7B2A941.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B97
Deuteranopia (green-blind)
#2C5292
Tritanopia (blue-blind)
#7A3F5C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7b2a94;
/* rgb */ color: rgb(123, 42, 148);
/* oklch */ color: oklch(45.3% 0.174 317.0);
Tailwind
colors: {
  custom: {
    50: '#a56bb4',
    500: '#7b2a94',
    950: '#000000',
  },
}
SCSS
$custom: #7b2a94;
$custom-light: #a56bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2a94",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 148
  },
  "hsl": {
    "h": 285.849,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45324,
    "c": 0.17396,
    "h": 317
  },
  "luminance": 0.08005
}

Semantic roles & 50–950 ramp

primary
#7B2A94
secondary
#75B960
accent
#DF496C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2A94

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

Preview Lab → · Contrast checker → · Palette generator →

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