#7A267E#7A267E

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

Color values

HEX#7A267E
RGBrgb(122, 38, 126)
HSLhsl(297, 54%, 32%)
HSVhsv(297, 70%, 49%)
CMYKcmyk(3.2%, 69.8%, 0%, 50.6%)
CIE-LABlab(31.88, 47.80, -31.96)
CIE-LCHlch(31.88, 57.50, 326.23°)
OKLaboklab(43.33% 0.1313 -0.0887)
OKLCHoklch(43.33% 0.158 326)
XYZxyz(12.4848, 7.0310, 20.4341)
Luminance0.0703 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A267E #2A7E26
analogous
#4E267E #7A267E #7E2656
triadic
#7A267E #7E7A26 #267E7A
tetradic
#7A267E #7E4E26 #2A7E26 #26567E
square
#7A267E #7E4E26 #2A7E26 #26567E
split-complementary
#7A267E #567E26 #267E4E
monochromatic
#1F0A20 #4C184F #7A267E #A834AD #C653CB

Accessibility & contrast

On white

8.73
#7A267E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7A267E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A267E
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A267E#FFFFFF#000000##FFFFFF
##7A267E1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154481
Deuteranopia (green-blind)
#394F7C
Tritanopia (blue-blind)
#7D334F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7a267e;
/* rgb */ color: rgb(122, 38, 126);
/* oklch */ color: oklch(43.3% 0.158 326.0);
Tailwind
colors: {
  custom: {
    50: '#a368a4',
    500: '#7a267e',
    950: '#000000',
  },
}
SCSS
$custom: #7a267e;
$custom-light: #a368a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a267e",
  "rgb": {
    "r": 122,
    "g": 38,
    "b": 126
  },
  "hsl": {
    "h": 297.273,
    "s": 53.659,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43334,
    "c": 0.15844,
    "h": 326
  },
  "luminance": 0.0703
}

Semantic roles & 50–950 ramp

primary
#7A267E
secondary
#54B050
accent
#DD4B51
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F070F
muted
#7F7A7F

Preview Lab

Preview with #7A267E

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

Preview Lab → · Contrast checker → · Palette generator →

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