#7B2599#7B2599

#7B2599 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.185 H 315.6°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#7B2599
RGBrgb(123, 37, 153)
HSLhsl(284, 61%, 37%)
HSVhsv(284, 76%, 60%)
CMYKcmyk(19.6%, 75.8%, 0%, 40%)
CIE-LABlab(33.64, 53.70, -45.82)
CIE-LCHlch(33.64, 70.59, 319.53°)
OKLaboklab(45.18% 0.1319 -0.1291)
OKLCHoklch(45.18% 0.185 315.6)
XYZxyz(14.5788, 7.8346, 30.8751)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2599 #439925
analogous
#412599 #7B2599 #99257D
triadic
#7B2599 #997B25 #25997B
tetradic
#7B2599 #994125 #439925 #257D99
square
#7B2599 #994125 #439925 #257D99
split-complementary
#7B2599 #7D9925 #259941
monochromatic
#2C0D36 #531968 #7B2599 #A331CA #B960D9

Accessibility & contrast

On white

8.18
#7B2599 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7B2599 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2599
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2599#FFFFFF#000000##FFFFFF
##7B25991.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9C
Deuteranopia (green-blind)
#225196
Tritanopia (blue-blind)
#793E5D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b2599;
/* rgb */ color: rgb(123, 37, 153);
/* oklch */ color: oklch(45.2% 0.185 315.6);
Tailwind
colors: {
  custom: {
    50: '#a569b8',
    500: '#7b2599',
    950: '#000000',
  },
}
SCSS
$custom: #7b2599;
$custom-light: #a569b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2599",
  "rgb": {
    "r": 123,
    "g": 37,
    "b": 153
  },
  "hsl": {
    "h": 284.483,
    "s": 61.053,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45177,
    "c": 0.18456,
    "h": 315.6
  },
  "luminance": 0.07834
}

Semantic roles & 50–950 ramp

primary
#7B2599
secondary
#75BE5C
accent
#E4446D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2599

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

Preview Lab → · Contrast checker → · Palette generator →

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