#7B2E9D#7B2E9D

#7B2E9D is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.4% C 0.178 H 313.5°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#7B2E9D
RGBrgb(123, 46, 157)
HSLhsl(282, 55%, 40%)
HSVhsv(282, 71%, 62%)
CMYKcmyk(21.7%, 70.7%, 0%, 38.4%)
CIE-LABlab(35.20, 50.88, -45.72)
CIE-LCHlch(35.20, 68.40, 318.05°)
OKLaboklab(46.38% 0.1222 -0.1289)
OKLCHoklch(46.38% 0.178 313.5)
XYZxyz(15.2301, 8.5997, 32.7494)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2E9D #509D2E
analogous
#442E9D #7B2E9D #9D2E87
triadic
#7B2E9D #9D7B2E #2E9D7B
tetradic
#7B2E9D #9D442E #509D2E #2E879D
square
#7B2E9D #9D442E #509D2E #2E879D
split-complementary
#7B2E9D #879D2E #2E9D44
monochromatic
#31123E #56206E #7B2E9D #9E41C7 #B670D5

Accessibility & contrast

On white

7.72
#7B2E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7B2E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2E9D
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2E9D#FFFFFF#000000##FFFFFF
##7B2E9D1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA0
Deuteranopia (green-blind)
#26559B
Tritanopia (blue-blind)
#784562
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b2e9d;
/* rgb */ color: rgb(123, 46, 157);
/* oklch */ color: oklch(46.4% 0.178 313.5);
Tailwind
colors: {
  custom: {
    50: '#a56dbb',
    500: '#7b2e9d',
    950: '#000000',
  },
}
SCSS
$custom: #7b2e9d;
$custom-light: #a56dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2e9d",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 281.622,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46378,
    "c": 0.17762,
    "h": 313.5
  },
  "luminance": 0.08599
}

Semantic roles & 50–950 ramp

primary
#7B2E9D
secondary
#83BD6A
accent
#DE4A77
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B2E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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