#7B299C#7B299C

#7B299C is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.8% C 0.183 H 314.2°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#7B299C
RGBrgb(123, 41, 156)
HSLhsl(283, 58%, 39%)
HSVhsv(283, 74%, 61%)
CMYKcmyk(21.2%, 73.7%, 0%, 38.8%)
CIE-LABlab(34.39, 52.76, -46.42)
CIE-LCHlch(34.39, 70.28, 318.66°)
OKLaboklab(45.78% 0.1275 -0.1309)
OKLCHoklch(45.78% 0.183 314.2)
XYZxyz(14.9611, 8.1976, 32.2402)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B299C #4A9C29
analogous
#41299C #7B299C #9C2983
triadic
#7B299C #9C7B29 #299C7B
tetradic
#7B299C #9C4129 #4A9C29 #29839C
square
#7B299C #9C4129 #4A9C29 #29839C
split-complementary
#7B299C #839C29 #299C41
monochromatic
#2F103B #551C6C #7B299C #A038CB #B768D7

Accessibility & contrast

On white

7.96
#7B299C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7B299C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B299C
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B299C#FFFFFF#000000##FFFFFF
##7B299C1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9F
Deuteranopia (green-blind)
#225399
Tritanopia (blue-blind)
#784260
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b299c;
/* rgb */ color: rgb(123, 41, 156);
/* oklch */ color: oklch(45.8% 0.183 314.2);
Tailwind
colors: {
  custom: {
    50: '#a56bba',
    500: '#7b299c',
    950: '#000000',
  },
}
SCSS
$custom: #7b299c;
$custom-light: #a56bba;
$custom-dark: #000000;
JSON
{
  "hex": "#7b299c",
  "rgb": {
    "r": 123,
    "g": 41,
    "b": 156
  },
  "hsl": {
    "h": 282.783,
    "s": 58.376,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45779,
    "c": 0.18279,
    "h": 314.2
  },
  "luminance": 0.08197
}

Semantic roles & 50–950 ramp

primary
#7B299C
secondary
#7DBE63
accent
#E24673
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B299C

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

Preview Lab → · Contrast checker → · Palette generator →

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