#7B2C97#7B2C97

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

Color values

HEX#7B2C97
RGBrgb(123, 44, 151)
HSLhsl(284, 55%, 38%)
HSVhsv(284, 71%, 59%)
CMYKcmyk(18.5%, 70.9%, 0%, 40.8%)
CIE-LABlab(34.49, 50.47, -43.22)
CIE-LCHlch(34.49, 66.44, 319.42°)
OKLaboklab(45.74% 0.1249 -0.1216)
OKLCHoklch(45.74% 0.174 315.8)
XYZxyz(14.6541, 8.2472, 30.0921)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2C97 #48972C
analogous
#452C97 #7B2C97 #972C7D
triadic
#7B2C97 #977B2C #2C977B
tetradic
#7B2C97 #97452C #48972C #2C7D97
square
#7B2C97 #97452C #48972C #2C7D97
split-complementary
#7B2C97 #7D972C #2C9745
monochromatic
#2E1038 #541E68 #7B2C97 #A13AC6 #B86AD4

Accessibility & contrast

On white

7.93
#7B2C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7B2C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2C97
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2C97#FFFFFF#000000##FFFFFF
##7B2C971.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#2B5395
Tritanopia (blue-blind)
#79415E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b2c97;
/* rgb */ color: rgb(123, 44, 151);
/* oklch */ color: oklch(45.7% 0.174 315.8);
Tailwind
colors: {
  custom: {
    50: '#a56cb6',
    500: '#7b2c97',
    950: '#000000',
  },
}
SCSS
$custom: #7b2c97;
$custom-light: #a56cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2c97",
  "rgb": {
    "r": 123,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 284.299,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45743,
    "c": 0.1743,
    "h": 315.8
  },
  "luminance": 0.08247
}

Semantic roles & 50–950 ramp

primary
#7B2C97
secondary
#7BBA65
accent
#DE4A70
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2C97

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

Preview Lab → · Contrast checker → · Palette generator →

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