#7B1972#7B1972

#7B1972 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.6% C 0.164 H 332.3°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#7B1972
RGBrgb(123, 25, 114)
HSLhsl(306, 66%, 29%)
HSVhsv(306, 80%, 48%)
CMYKcmyk(0%, 79.7%, 7.3%, 51.8%)
CIE-LABlab(29.72, 50.62, -27.78)
CIE-LCHlch(29.72, 57.74, 331.24°)
OKLaboklab(41.6% 0.1455 -0.0764)
OKLCHoklch(41.6% 0.164 332.3)
XYZxyz(11.5533, 6.1221, 16.4895)
Luminance0.0612 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1972 #197B22
analogous
#53197B #7B1972 #7B1941
triadic
#7B1972 #727B19 #19727B
tetradic
#7B1972 #7B5319 #197B22 #19417B
square
#7B1972 #7B5319 #197B22 #19417B
split-complementary
#7B1972 #417B19 #197B53
monochromatic
#190518 #480F43 #7B1972 #AE23A1 #D738C8

Accessibility & contrast

On white

9.44
#7B1972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7B1972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1972
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1972#FFFFFF#000000##FFFFFF
##7B19721.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123D74
Deuteranopia (green-blind)
#3A4B70
Tritanopia (blue-blind)
#812545
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7b1972;
/* rgb */ color: rgb(123, 25, 114);
/* oklch */ color: oklch(41.6% 0.164 332.3);
Tailwind
colors: {
  custom: {
    50: '#a5629b',
    500: '#7b1972',
    950: '#000000',
  },
}
SCSS
$custom: #7b1972;
$custom-light: #a5629b;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1972",
  "rgb": {
    "r": 123,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 305.51,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41595,
    "c": 0.16436,
    "h": 332.3
  },
  "luminance": 0.06121
}

Semantic roles & 50–950 ramp

primary
#7B1972
secondary
#40AF4B
accent
#E94E3F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B1972

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

Preview Lab → · Contrast checker → · Palette generator →

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