#7B2E95#7B2E95

#7B2E95 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.8% C 0.170 H 316.3°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#7B2E95
RGBrgb(123, 46, 149)
HSLhsl(285, 53%, 38%)
HSVhsv(285, 69%, 58%)
CMYKcmyk(17.4%, 69.1%, 0%, 41.6%)
CIE-LABlab(34.67, 49.18, -41.71)
CIE-LCHlch(34.67, 64.48, 319.70°)
OKLaboklab(45.83% 0.1228 -0.1172)
OKLCHoklch(45.83% 0.17 316.3)
XYZxyz(14.5694, 8.3354, 29.2694)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2E95 #48952E
analogous
#472E95 #7B2E95 #952E7B
triadic
#7B2E95 #957B2E #2E957B
tetradic
#7B2E95 #95472E #48952E #2E7B95
square
#7B2E95 #95472E #48952E #2E7B95
split-complementary
#7B2E95 #7B952E #2E9547
monochromatic
#2E1137 #542066 #7B2E95 #A13DC3 #B86CD2

Accessibility & contrast

On white

7.87
#7B2E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7B2E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2E95
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2E95#FFFFFF#000000##FFFFFF
##7B2E951.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D98
Deuteranopia (green-blind)
#2E5493
Tritanopia (blue-blind)
#79425E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b2e95;
/* rgb */ color: rgb(123, 46, 149);
/* oklch */ color: oklch(45.8% 0.170 316.3);
Tailwind
colors: {
  custom: {
    50: '#a46db5',
    500: '#7b2e95',
    950: '#000000',
  },
}
SCSS
$custom: #7b2e95;
$custom-light: #a46db5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2e95",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 149
  },
  "hsl": {
    "h": 284.854,
    "s": 52.821,
    "l": 38.235
  },
  "oklch": {
    "l": 0.4583,
    "c": 0.16974,
    "h": 316.3
  },
  "luminance": 0.08335
}

Semantic roles & 50–950 ramp

primary
#7B2E95
secondary
#7BB966
accent
#DC4C70
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2E95

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

Preview Lab → · Contrast checker → · Palette generator →

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