#7A246C#7A246C

#7A246C is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.1% C 0.146 H 335.1°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#7A246C
RGBrgb(122, 36, 108)
HSLhsl(310, 54%, 31%)
HSVhsv(310, 70%, 48%)
CMYKcmyk(0%, 70.5%, 11.5%, 52.2%)
CIE-LABlab(30.60, 45.46, -22.57)
CIE-LCHlch(30.60, 50.76, 333.59°)
OKLaboklab(42.09% 0.1324 -0.0616)
OKLCHoklch(42.09% 0.146 335.1)
XYZxyz(11.3638, 6.4830, 14.8373)
Luminance0.0648 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A246C #247A32
analogous
#5D247A #7A246C #7A2441
triadic
#7A246C #6C7A24 #246C7A
tetradic
#7A246C #7A5D24 #247A32 #24417A
square
#7A246C #7A5D24 #247A32 #24417A
split-complementary
#7A246C #417A24 #247A5D
monochromatic
#1B0818 #4B1642 #7A246C #A93296 #CB4EB6

Accessibility & contrast

On white

9.14
#7A246C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7A246C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A246C
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A246C#FFFFFF#000000##FFFFFF
##7A246C1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24406E
Deuteranopia (green-blind)
#414D6A
Tritanopia (blue-blind)
#802A45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7a246c;
/* rgb */ color: rgb(122, 36, 108);
/* oklch */ color: oklch(42.1% 0.146 335.1);
Tailwind
colors: {
  custom: {
    50: '#a36796',
    500: '#7a246c',
    950: '#000000',
  },
}
SCSS
$custom: #7a246c;
$custom-light: #a36796;
$custom-dark: #000000;
JSON
{
  "hex": "#7a246c",
  "rgb": {
    "r": 122,
    "g": 36,
    "b": 108
  },
  "hsl": {
    "h": 309.767,
    "s": 54.43,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42091,
    "c": 0.14604,
    "h": 335.1
  },
  "luminance": 0.06482
}

Semantic roles & 50–950 ramp

primary
#7A246C
secondary
#4DAC5D
accent
#DE624A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060D
muted
#7F7A7E

Preview Lab

Preview with #7A246C

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

Preview Lab → · Contrast checker → · Palette generator →

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