#7A256D#7A256D

#7A256D is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.3% C 0.145 H 334.5°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#7A256D
RGBrgb(122, 37, 109)
HSLhsl(309, 53%, 31%)
HSVhsv(309, 70%, 48%)
CMYKcmyk(0%, 69.7%, 10.7%, 52.2%)
CIE-LABlab(30.80, 45.21, -22.90)
CIE-LCHlch(30.80, 50.68, 333.13°)
OKLaboklab(42.25% 0.1313 -0.0625)
OKLCHoklch(42.25% 0.145 334.5)
XYZxyz(11.4480, 6.5658, 15.1294)
Luminance0.0657 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A256D #257A32
analogous
#5C257A #7A256D #7A2542
triadic
#7A256D #6D7A25 #256D7A
tetradic
#7A256D #7A5C25 #257A32 #25427A
square
#7A256D #7A5C25 #257A32 #25427A
split-complementary
#7A256D #427A25 #257A5C
monochromatic
#1C0919 #4B1743 #7A256D #A93397 #CA50B7

Accessibility & contrast

On white

9.08
#7A256D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A256D
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A256D#FFFFFF#000000##FFFFFF
##7A256D1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24406F
Deuteranopia (green-blind)
#414D6B
Tritanopia (blue-blind)
#802B45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7a256d;
/* rgb */ color: rgb(122, 37, 109);
/* oklch */ color: oklch(42.3% 0.145 334.5);
Tailwind
colors: {
  custom: {
    50: '#a36797',
    500: '#7a256d',
    950: '#000000',
  },
}
SCSS
$custom: #7a256d;
$custom-light: #a36797;
$custom-dark: #000000;
JSON
{
  "hex": "#7a256d",
  "rgb": {
    "r": 122,
    "g": 37,
    "b": 109
  },
  "hsl": {
    "h": 309.176,
    "s": 53.459,
    "l": 31.176
  },
  "oklch": {
    "l": 0.4225,
    "c": 0.14547,
    "h": 334.5
  },
  "luminance": 0.06565
}

Semantic roles & 50–950 ramp

primary
#7A256D
secondary
#4EAC5D
accent
#DD614B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060D
muted
#7F7A7E

Preview Lab

Preview with #7A256D

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

Preview Lab → · Contrast checker → · Palette generator →

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