#7B2A90#7B2A90

#7B2A90 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.1% C 0.170 H 318.6°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#7B2A90
RGBrgb(123, 42, 144)
HSLhsl(288, 55%, 36%)
HSVhsv(288, 71%, 56%)
CMYKcmyk(14.6%, 70.8%, 0%, 43.5%)
CIE-LABlab(33.73, 49.87, -40.15)
CIE-LCHlch(33.73, 64.03, 321.16°)
OKLaboklab(45.06% 0.1276 -0.1126)
OKLCHoklch(45.06% 0.17 318.6)
XYZxyz(14.0297, 7.8811, 27.1624)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2A90 #3F902A
analogous
#482A90 #7B2A90 #902A72
triadic
#7B2A90 #907B2A #2A907B
tetradic
#7B2A90 #90482A #3F902A #2A7290
square
#7B2A90 #90482A #3F902A #2A7290
split-complementary
#7B2A90 #72902A #2A9048
monochromatic
#2A0E31 #531C61 #7B2A90 #A338BF #BB63D1

Accessibility & contrast

On white

8.15
#7B2A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7B2A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2A90
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2A90#FFFFFF#000000##FFFFFF
##7B2A901.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A93
Deuteranopia (green-blind)
#30528E
Tritanopia (blue-blind)
#7B3D5A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b2a90;
/* rgb */ color: rgb(123, 42, 144);
/* oklch */ color: oklch(45.1% 0.170 318.6);
Tailwind
colors: {
  custom: {
    50: '#a46bb1',
    500: '#7b2a90',
    950: '#000000',
  },
}
SCSS
$custom: #7b2a90;
$custom-light: #a46bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2a90",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 144
  },
  "hsl": {
    "h": 287.647,
    "s": 54.839,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45055,
    "c": 0.17017,
    "h": 318.6
  },
  "luminance": 0.0788
}

Semantic roles & 50–950 ramp

primary
#7B2A90
secondary
#71B75E
accent
#DE4A68
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2A90

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

Preview Lab → · Contrast checker → · Palette generator →

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