#7A2274#7A2274

#7A2274 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.3% C 0.155 H 330.8°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#7A2274
RGBrgb(122, 34, 116)
HSLhsl(304, 56%, 31%)
HSVhsv(304, 72%, 48%)
CMYKcmyk(0%, 72.1%, 4.9%, 52.2%)
CIE-LABlab(30.74, 47.60, -27.45)
CIE-LCHlch(30.74, 54.94, 330.03°)
OKLaboklab(42.33% 0.1355 -0.0756)
OKLCHoklch(42.33% 0.155 330.8)
XYZxyz(11.7504, 6.5435, 17.1637)
Luminance0.0654 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2274 #227A28
analogous
#54227A #7A2274 #7A2248
triadic
#7A2274 #747A22 #22747A
tetradic
#7A2274 #7A5422 #227A28 #22487A
square
#7A2274 #7A5422 #227A28 #22487A
split-complementary
#7A2274 #487A22 #227A54
monochromatic
#1A0719 #4A1546 #7A2274 #AA2FA2 #CD4AC4

Accessibility & contrast

On white

9.10
#7A2274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A2274
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2274#FFFFFF#000000##FFFFFF
##7A22741.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4176
Deuteranopia (green-blind)
#3C4D72
Tritanopia (blue-blind)
#7F2C48
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7a2274;
/* rgb */ color: rgb(122, 34, 116);
/* oklch */ color: oklch(42.3% 0.155 330.8);
Tailwind
colors: {
  custom: {
    50: '#a3669c',
    500: '#7a2274',
    950: '#000000',
  },
}
SCSS
$custom: #7a2274;
$custom-light: #a3669c;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2274",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 116
  },
  "hsl": {
    "h": 304.091,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42333,
    "c": 0.15511,
    "h": 330.8
  },
  "luminance": 0.06543
}

Semantic roles & 50–950 ramp

primary
#7A2274
secondary
#4BAD52
accent
#E05248
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #7A2274

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

Preview Lab → · Contrast checker → · Palette generator →

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