#7A2B8F#7A2B8F

#7A2B8F is a dark, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.167 H 318.4°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#7A2B8F
RGBrgb(122, 43, 143)
HSLhsl(287, 54%, 36%)
HSVhsv(287, 70%, 56%)
CMYKcmyk(14.7%, 69.9%, 0%, 43.9%)
CIE-LABlab(33.67, 49.01, -39.66)
CIE-LCHlch(33.67, 63.05, 321.02°)
OKLaboklab(44.95% 0.1253 -0.1112)
OKLCHoklch(44.95% 0.167 318.4)
XYZxyz(13.8472, 7.8491, 26.7669)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2B8F #408F2B
analogous
#482B8F #7A2B8F #8F2B72
triadic
#7A2B8F #8F7A2B #2B8F7A
tetradic
#7A2B8F #8F482B #408F2B #2B728F
square
#7A2B8F #8F482B #408F2B #2B728F
split-complementary
#7A2B8F #728F2B #2B8F48
monochromatic
#2A0F31 #521D60 #7A2B8F #A239BE #BA64D0

Accessibility & contrast

On white

8.17
#7A2B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7A2B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2B8F
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2B8F#FFFFFF#000000##FFFFFF
##7A2B8F1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#30528D
Tritanopia (blue-blind)
#7A3E5A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a2b8f;
/* rgb */ color: rgb(122, 43, 143);
/* oklch */ color: oklch(45.0% 0.167 318.4);
Tailwind
colors: {
  custom: {
    50: '#a46bb0',
    500: '#7a2b8f',
    950: '#000000',
  },
}
SCSS
$custom: #7a2b8f;
$custom-light: #a46bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2b8f",
  "rgb": {
    "r": 122,
    "g": 43,
    "b": 143
  },
  "hsl": {
    "h": 287.4,
    "s": 53.763,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44954,
    "c": 0.16749,
    "h": 318.4
  },
  "luminance": 0.07848
}

Semantic roles & 50–950 ramp

primary
#7A2B8F
secondary
#72B75F
accent
#DD4B69
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A2B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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