#7B2174#7B2174

#7B2174 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.4% C 0.157 H 331.3°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#7B2174
RGBrgb(123, 33, 116)
HSLhsl(305, 58%, 31%)
HSVhsv(305, 73%, 48%)
CMYKcmyk(0%, 73.2%, 5.7%, 51.8%)
CIE-LABlab(30.78, 48.23, -27.37)
CIE-LCHlch(30.78, 55.45, 330.42°)
OKLaboklab(42.4% 0.1377 -0.0753)
OKLCHoklch(42.4% 0.157 331.3)
XYZxyz(11.8646, 6.5606, 17.1610)
Luminance0.0656 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2174 #217B28
analogous
#55217B #7B2174 #7B2147
triadic
#7B2174 #747B21 #21747B
tetradic
#7B2174 #7B5521 #217B28 #21477B
square
#7B2174 #7B5521 #217B28 #21477B
split-complementary
#7B2174 #477B21 #217B55
monochromatic
#1A0719 #4B1446 #7B2174 #AB2EA2 #CE48C4

Accessibility & contrast

On white

9.08
#7B2174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7B2174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2174
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2174#FFFFFF#000000##FFFFFF
##7B21741.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4076
Deuteranopia (green-blind)
#3D4D72
Tritanopia (blue-blind)
#802B48
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b2174;
/* rgb */ color: rgb(123, 33, 116);
/* oklch */ color: oklch(42.4% 0.157 331.3);
Tailwind
colors: {
  custom: {
    50: '#a4669c',
    500: '#7b2174',
    950: '#000000',
  },
}
SCSS
$custom: #7b2174;
$custom-light: #a4669c;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2174",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 304.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42396,
    "c": 0.15693,
    "h": 331.3
  },
  "luminance": 0.0656
}

Semantic roles & 50–950 ramp

primary
#7B2174
secondary
#4AAE52
accent
#E15347
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B2174

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

Preview Lab → · Contrast checker → · Palette generator →

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