#7B2170#7B2170

#7B2170 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.2% C 0.154 H 333.3°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#7B2170
RGBrgb(123, 33, 112)
HSLhsl(307, 58%, 31%)
HSVhsv(307, 73%, 48%)
CMYKcmyk(0%, 73.2%, 8.9%, 51.8%)
CIE-LABlab(30.57, 47.56, -25.17)
CIE-LCHlch(30.57, 53.80, 332.11°)
OKLaboklab(42.17% 0.1374 -0.069)
OKLCHoklch(42.17% 0.154 333.3)
XYZxyz(11.6369, 6.4695, 15.9619)
Luminance0.0647 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2170 #217B2C
analogous
#59217B #7B2170 #7B2143
triadic
#7B2170 #707B21 #21707B
tetradic
#7B2170 #7B5921 #217B2C #21437B
square
#7B2170 #7B5921 #217B2C #21437B
split-complementary
#7B2170 #437B21 #217B59
monochromatic
#1A0718 #4B1444 #7B2170 #AB2E9C #CE48BE

Accessibility & contrast

On white

9.16
#7B2170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7B2170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2170
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2170#FFFFFF#000000##FFFFFF
##7B21701.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4072
Deuteranopia (green-blind)
#3E4D6E
Tritanopia (blue-blind)
#812946
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b2170;
/* rgb */ color: rgb(123, 33, 112);
/* oklch */ color: oklch(42.2% 0.154 333.3);
Tailwind
colors: {
  custom: {
    50: '#a46599',
    500: '#7b2170',
    950: '#000000',
  },
}
SCSS
$custom: #7b2170;
$custom-light: #a46599;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2170",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 307.333,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42169,
    "c": 0.15373,
    "h": 333.3
  },
  "luminance": 0.06469
}

Semantic roles & 50–950 ramp

primary
#7B2170
secondary
#4AAE56
accent
#E15A47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B2170

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

Preview Lab → · Contrast checker → · Palette generator →

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