#7A2F85#7A2F85

#7A2F85 is a dark, vivid purple. Relative luminance 0.079; OKLCH L 44.8% C 0.152 H 322.4°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#7A2F85
RGBrgb(122, 47, 133)
HSLhsl(292, 48%, 35%)
HSVhsv(292, 65%, 52%)
CMYKcmyk(8.3%, 64.7%, 0%, 47.8%)
CIE-LABlab(33.70, 45.20, -33.43)
CIE-LCHlch(33.70, 56.22, 323.51°)
OKLaboklab(44.78% 0.1206 -0.093)
OKLCHoklch(44.78% 0.152 322.4)
XYZxyz(13.2758, 7.8648, 23.0045)
Luminance0.0786 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2F85 #3A852F
analogous
#4F2F85 #7A2F85 #852F65
triadic
#7A2F85 #857A2F #2F857A
tetradic
#7A2F85 #854F2F #3A852F #2F6585
square
#7A2F85 #854F2F #3A852F #2F6585
split-complementary
#7A2F85 #65852F #2F854F
monochromatic
#270F2B #511F58 #7A2F85 #A33FB2 #BC66C9

Accessibility & contrast

On white

8.16
#7A2F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7A2F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2F85
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2F85#FFFFFF#000000##FFFFFF
##7A2F851.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4A88
Deuteranopia (green-blind)
#3A5283
Tritanopia (blue-blind)
#7C3C55
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a2f85;
/* rgb */ color: rgb(122, 47, 133);
/* oklch */ color: oklch(44.8% 0.152 322.4);
Tailwind
colors: {
  custom: {
    50: '#a36da9',
    500: '#7a2f85',
    950: '#000000',
  },
}
SCSS
$custom: #7a2f85;
$custom-light: #a36da9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2f85",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 133
  },
  "hsl": {
    "h": 292.326,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.44781,
    "c": 0.15231,
    "h": 322.4
  },
  "luminance": 0.07864
}

Semantic roles & 50–950 ramp

primary
#7A2F85
secondary
#6AB060
accent
#D75062
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A2F85

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

Preview Lab → · Contrast checker → · Palette generator →

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