#7B2F95#7B2F95

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

Color values

HEX#7B2F95
RGBrgb(123, 47, 149)
HSLhsl(285, 52%, 38%)
HSVhsv(285, 68%, 58%)
CMYKcmyk(17.4%, 68.5%, 0%, 41.6%)
CIE-LABlab(34.83, 48.73, -41.46)
CIE-LCHlch(34.83, 63.98, 319.61°)
OKLaboklab(45.94% 0.1217 -0.1164)
OKLCHoklch(45.94% 0.168 316.3)
XYZxyz(14.6089, 8.4145, 29.2826)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2F95 #49952F
analogous
#482F95 #7B2F95 #952F7C
triadic
#7B2F95 #957B2F #2F957B
tetradic
#7B2F95 #95482F #49952F #2F7C95
square
#7B2F95 #95482F #49952F #2F7C95
split-complementary
#7B2F95 #7C952F #2F9548
monochromatic
#2E1238 #552066 #7B2F95 #A13FC2 #B86DD1

Accessibility & contrast

On white

7.83
#7B2F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2F95
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2F95#FFFFFF#000000##FFFFFF
##7B2F951.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b2f95;
/* rgb */ color: rgb(123, 47, 149);
/* oklch */ color: oklch(45.9% 0.168 316.3);
Tailwind
colors: {
  custom: {
    50: '#a46eb5',
    500: '#7b2f95',
    950: '#000000',
  },
}
SCSS
$custom: #7b2f95;
$custom-light: #a46eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2f95",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 284.706,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45944,
    "c": 0.1684,
    "h": 316.3
  },
  "luminance": 0.08414
}

Semantic roles & 50–950 ramp

primary
#7B2F95
secondary
#7CB867
accent
#DB4C71
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2F95

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

Preview Lab → · Contrast checker → · Palette generator →

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