#7B2F97#7B2F97

#7B2F97 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.1% C 0.170 H 315.5°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#7B2F97
RGBrgb(123, 47, 151)
HSLhsl(284, 53%, 39%)
HSVhsv(284, 69%, 59%)
CMYKcmyk(18.5%, 68.9%, 0%, 40.8%)
CIE-LABlab(34.96, 49.15, -42.47)
CIE-LCHlch(34.96, 64.96, 319.17°)
OKLaboklab(46.08% 0.1215 -0.1194)
OKLCHoklch(46.08% 0.17 315.5)
XYZxyz(14.7699, 8.4789, 30.1307)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2F97 #4B972F
analogous
#472F97 #7B2F97 #972F7F
triadic
#7B2F97 #977B2F #2F977B
tetradic
#7B2F97 #97472F #4B972F #2F7F97
square
#7B2F97 #97472F #4B972F #2F7F97
split-complementary
#7B2F97 #7F972F #2F9747
monochromatic
#2F123A #552068 #7B2F97 #A040C3 #B76ED2

Accessibility & contrast

On white

7.79
#7B2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7B2F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2F97
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2F97#FFFFFF#000000##FFFFFF
##7B2F971.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#2D5495
Tritanopia (blue-blind)
#79435F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b2f97;
/* rgb */ color: rgb(123, 47, 151);
/* oklch */ color: oklch(46.1% 0.170 315.5);
Tailwind
colors: {
  custom: {
    50: '#a46eb6',
    500: '#7b2f97',
    950: '#000000',
  },
}
SCSS
$custom: #7b2f97;
$custom-light: #a46eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2f97",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 283.846,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46079,
    "c": 0.17037,
    "h": 315.5
  },
  "luminance": 0.08478
}

Semantic roles & 50–950 ramp

primary
#7B2F97
secondary
#7EB968
accent
#DC4C73
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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