#7B2F94#7B2F94

#7B2F94 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.9% C 0.167 H 316.6°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#7B2F94
RGBrgb(123, 47, 148)
HSLhsl(285, 52%, 38%)
HSVhsv(285, 68%, 58%)
CMYKcmyk(16.9%, 68.2%, 0%, 42%)
CIE-LABlab(34.77, 48.52, -40.95)
CIE-LCHlch(34.77, 63.49, 319.84°)
OKLaboklab(45.88% 0.1217 -0.1149)
OKLCHoklch(45.88% 0.167 316.6)
XYZxyz(14.5294, 8.3827, 28.8639)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2F94 #48942F
analogous
#492F94 #7B2F94 #942F7A
triadic
#7B2F94 #947B2F #2F947B
tetradic
#7B2F94 #94492F #48942F #2F7A94
square
#7B2F94 #94492F #48942F #2F7A94
split-complementary
#7B2F94 #7A942F #2F9449
monochromatic
#2E1137 #542066 #7B2F94 #A13EC2 #B86DD1

Accessibility & contrast

On white

7.85
#7B2F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7B2F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2F94
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2F94#FFFFFF#000000##FFFFFF
##7B2F941.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D97
Deuteranopia (green-blind)
#305492
Tritanopia (blue-blind)
#7A425D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b2f94;
/* rgb */ color: rgb(123, 47, 148);
/* oklch */ color: oklch(45.9% 0.167 316.6);
Tailwind
colors: {
  custom: {
    50: '#a46eb4',
    500: '#7b2f94',
    950: '#000000',
  },
}
SCSS
$custom: #7b2f94;
$custom-light: #a46eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2f94",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 285.149,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45878,
    "c": 0.16741,
    "h": 316.6
  },
  "luminance": 0.08382
}

Semantic roles & 50–950 ramp

primary
#7B2F94
secondary
#7BB867
accent
#DB4D70
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2F94

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

Preview Lab → · Contrast checker → · Palette generator →

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