#7A267D#7A267D

#7A267D is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.3% C 0.158 H 326.4°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#7A267D
RGBrgb(122, 38, 125)
HSLhsl(298, 53%, 32%)
HSVhsv(298, 70%, 49%)
CMYKcmyk(2.4%, 69.6%, 0%, 51%)
CIE-LABlab(31.82, 47.61, -31.42)
CIE-LCHlch(31.82, 57.05, 326.58°)
OKLaboklab(43.27% 0.1313 -0.0871)
OKLCHoklch(43.27% 0.158 326.4)
XYZxyz(12.4206, 7.0053, 20.0960)
Luminance0.0700 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A267D #297D26
analogous
#4F267D #7A267D #7D2655
triadic
#7A267D #7D7A26 #267D7A
tetradic
#7A267D #7D4F26 #297D26 #26557D
square
#7A267D #7D4F26 #297D26 #26557D
split-complementary
#7A267D #557D26 #267D4F
monochromatic
#1E091F #4C184E #7A267D #A834AC #C753CB

Accessibility & contrast

On white

8.75
#7A267D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7A267D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A267D
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A267D#FFFFFF#000000##FFFFFF
##7A267D1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164480
Deuteranopia (green-blind)
#394F7B
Tritanopia (blue-blind)
#7D334E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7a267d;
/* rgb */ color: rgb(122, 38, 125);
/* oklch */ color: oklch(43.3% 0.158 326.4);
Tailwind
colors: {
  custom: {
    50: '#a368a3',
    500: '#7a267d',
    950: '#000000',
  },
}
SCSS
$custom: #7a267d;
$custom-light: #a368a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a267d",
  "rgb": {
    "r": 122,
    "g": 38,
    "b": 125
  },
  "hsl": {
    "h": 297.931,
    "s": 53.374,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43273,
    "c": 0.15757,
    "h": 326.4
  },
  "luminance": 0.07004
}

Semantic roles & 50–950 ramp

primary
#7A267D
secondary
#53AF50
accent
#DD4B50
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F070F
muted
#7F7A7F

Preview Lab

Preview with #7A267D

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

Preview Lab → · Contrast checker → · Palette generator →

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