#7B2274#7B2274

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

Color values

HEX#7B2274
RGBrgb(123, 34, 116)
HSLhsl(305, 57%, 31%)
HSVhsv(305, 72%, 48%)
CMYKcmyk(0%, 72.4%, 5.7%, 51.8%)
CIE-LABlab(30.92, 47.85, -27.16)
CIE-LCHlch(30.92, 55.02, 330.42°)
OKLaboklab(42.49% 0.1366 -0.0747)
OKLCHoklch(42.49% 0.156 331.3)
XYZxyz(11.8928, 6.6169, 17.1704)
Luminance0.0662 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2274 #227B29
analogous
#55227B #7B2274 #7B2247
triadic
#7B2274 #747B22 #22747B
tetradic
#7B2274 #7B5522 #227B29 #22477B
square
#7B2274 #7B5522 #227B29 #22477B
split-complementary
#7B2274 #477B22 #227B55
monochromatic
#1B071A #4B1547 #7B2274 #AB2FA1 #CD4AC3

Accessibility & contrast

On white

9.04
#7B2274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7B2274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2274
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2274#FFFFFF#000000##FFFFFF
##7B22741.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4176
Deuteranopia (green-blind)
#3D4D72
Tritanopia (blue-blind)
#802C48
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b2274;
/* rgb */ color: rgb(123, 34, 116);
/* oklch */ color: oklch(42.5% 0.156 331.3);
Tailwind
colors: {
  custom: {
    50: '#a4669c',
    500: '#7b2274',
    950: '#000000',
  },
}
SCSS
$custom: #7b2274;
$custom-light: #a4669c;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2274",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 116
  },
  "hsl": {
    "h": 304.719,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42493,
    "c": 0.15569,
    "h": 331.3
  },
  "luminance": 0.06616
}

Semantic roles & 50–950 ramp

primary
#7B2274
secondary
#4BAE53
accent
#E05448
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B2274

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

Preview Lab → · Contrast checker → · Palette generator →

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