#7A286D#7A286D

#7A286D is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.6% C 0.141 H 334.6°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#7A286D
RGBrgb(122, 40, 109)
HSLhsl(310, 51%, 32%)
HSVhsv(310, 67%, 48%)
CMYKcmyk(0%, 67.2%, 10.7%, 52.2%)
CIE-LABlab(31.25, 43.94, -22.19)
CIE-LCHlch(31.25, 49.22, 333.21°)
OKLaboklab(42.58% 0.1276 -0.0605)
OKLCHoklch(42.58% 0.141 334.6)
XYZxyz(11.5452, 6.7602, 15.1618)
Luminance0.0676 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A286D #287A35
analogous
#5E287A #7A286D #7A2844
triadic
#7A286D #6D7A28 #286D7A
tetradic
#7A286D #7A5E28 #287A35 #28447A
square
#7A286D #7A5E28 #287A35 #28447A
split-complementary
#7A286D #447A28 #287A5E
monochromatic
#1E0A1B #4C1944 #7A286D #A83796 #C755B5

Accessibility & contrast

On white

8.93
#7A286D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7A286D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A286D
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A286D#FFFFFF#000000##FFFFFF
##7A286D1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27426F
Deuteranopia (green-blind)
#424E6B
Tritanopia (blue-blind)
#802E46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a286d;
/* rgb */ color: rgb(122, 40, 109);
/* oklch */ color: oklch(42.6% 0.141 334.6);
Tailwind
colors: {
  custom: {
    50: '#a36997',
    500: '#7a286d',
    950: '#000000',
  },
}
SCSS
$custom: #7a286d;
$custom-light: #a36997;
$custom-dark: #000000;
JSON
{
  "hex": "#7a286d",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 109
  },
  "hsl": {
    "h": 309.512,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.42583,
    "c": 0.14122,
    "h": 334.6
  },
  "luminance": 0.06759
}

Semantic roles & 50–950 ramp

primary
#7A286D
secondary
#52AC60
accent
#DA644E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F070D
muted
#7F7A7E

Preview Lab

Preview with #7A286D

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

Preview Lab → · Contrast checker → · Palette generator →

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