#7B2287#7B2287

#7B2287 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.7% C 0.172 H 322.7°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#7B2287
RGBrgb(123, 34, 135)
HSLhsl(293, 60%, 33%)
HSVhsv(293, 75%, 53%)
CMYKcmyk(8.9%, 74.8%, 0%, 47.1%)
CIE-LABlab(32.04, 51.27, -37.30)
CIE-LCHlch(32.04, 63.40, 323.96°)
OKLaboklab(43.66% 0.1366 -0.1042)
OKLCHoklch(43.66% 0.172 322.7)
XYZxyz(13.1131, 7.1050, 23.5977)
Luminance0.0710 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2287 #2E8722
analogous
#482287 #7B2287 #872260
triadic
#7B2287 #877B22 #22877B
tetradic
#7B2287 #874822 #2E8722 #226087
square
#7B2287 #874822 #2E8722 #226087
split-complementary
#7B2287 #608722 #228748
monochromatic
#220925 #4E1656 #7B2287 #A82EB8 #C350D3

Accessibility & contrast

On white

8.67
#7B2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7B2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2287
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2287#FFFFFF#000000##FFFFFF
##7B22871.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#314F85
Tritanopia (blue-blind)
#7D3553
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7b2287;
/* rgb */ color: rgb(123, 34, 135);
/* oklch */ color: oklch(43.7% 0.172 322.7);
Tailwind
colors: {
  custom: {
    50: '#a567aa',
    500: '#7b2287',
    950: '#000000',
  },
}
SCSS
$custom: #7b2287;
$custom-light: #a567aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2287",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 292.871,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43663,
    "c": 0.17178,
    "h": 322.7
  },
  "luminance": 0.07104
}

Semantic roles & 50–950 ramp

primary
#7B2287
secondary
#5BB74E
accent
#E34558
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B2287

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

Preview Lab → · Contrast checker → · Palette generator →

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