#7A286F#7A286F

#7A286F is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.7% C 0.143 H 333.5°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#7A286F
RGBrgb(122, 40, 111)
HSLhsl(308, 51%, 32%)
HSVhsv(308, 67%, 48%)
CMYKcmyk(0%, 67.2%, 9%, 52.2%)
CIE-LABlab(31.36, 44.28, -23.31)
CIE-LCHlch(31.36, 50.04, 332.24°)
OKLaboklab(42.69% 0.1279 -0.0637)
OKLCHoklch(42.69% 0.143 333.5)
XYZxyz(11.6541, 6.8038, 15.7353)
Luminance0.0680 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A286F #287A33
analogous
#5C287A #7A286F #7A2846
triadic
#7A286F #6F7A28 #286F7A
tetradic
#7A286F #7A5C28 #287A33 #28467A
square
#7A286F #7A5C28 #287A33 #28467A
split-complementary
#7A286F #467A28 #287A5C
monochromatic
#1E0A1B #4C1945 #7A286F #A83799 #C755B8

Accessibility & contrast

On white

8.90
#7A286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7A286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A286F
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A286F#FFFFFF#000000##FFFFFF
##7A286F1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264271
Deuteranopia (green-blind)
#414E6D
Tritanopia (blue-blind)
#802F47
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a286f;
/* rgb */ color: rgb(122, 40, 111);
/* oklch */ color: oklch(42.7% 0.143 333.5);
Tailwind
colors: {
  custom: {
    50: '#a36998',
    500: '#7a286f',
    950: '#000000',
  },
}
SCSS
$custom: #7a286f;
$custom-light: #a36998;
$custom-dark: #000000;
JSON
{
  "hex": "#7a286f",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 308.049,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.4269,
    "c": 0.14285,
    "h": 333.5
  },
  "luminance": 0.06803
}

Semantic roles & 50–950 ramp

primary
#7A286F
secondary
#52AC5E
accent
#DA614E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F070D
muted
#7F7A7E

Preview Lab

Preview with #7A286F

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

Preview Lab → · Contrast checker → · Palette generator →

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