#7C266E#7C266E

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

Color values

HEX#7C266E
RGBrgb(124, 38, 110)
HSLhsl(310, 53%, 32%)
HSVhsv(310, 69%, 49%)
CMYKcmyk(0%, 69.4%, 11.3%, 51.4%)
CIE-LABlab(31.34, 45.51, -22.67)
CIE-LCHlch(31.34, 50.84, 333.52°)
OKLaboklab(42.73% 0.1325 -0.0618)
OKLCHoklch(42.73% 0.146 335)
XYZxyz(11.8199, 6.7981, 15.4385)
Luminance0.0680 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C266E #267C34
analogous
#5F267C #7C266E #7C2643
triadic
#7C266E #6E7C26 #266E7C
tetradic
#7C266E #7C5F26 #267C34 #26437C
square
#7C266E #7C5F26 #267C34 #26437C
split-complementary
#7C266E #437C26 #267C5F
monochromatic
#1E091B #4D1844 #7C266E #AB3498 #CA52B7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C266E#FFFFFF#000000##FFFFFF
##7C266E1.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)
#264270
Deuteranopia (green-blind)
#424E6C
Tritanopia (blue-blind)
#822C46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c266e;
/* rgb */ color: rgb(124, 38, 110);
/* oklch */ color: oklch(42.7% 0.146 335.0);
Tailwind
colors: {
  custom: {
    50: '#a56898',
    500: '#7c266e',
    950: '#000000',
  },
}
SCSS
$custom: #7c266e;
$custom-light: #a56898;
$custom-dark: #000000;
JSON
{
  "hex": "#7c266e",
  "rgb": {
    "r": 124,
    "g": 38,
    "b": 110
  },
  "hsl": {
    "h": 309.767,
    "s": 53.086,
    "l": 31.765
  },
  "oklch": {
    "l": 0.4273,
    "c": 0.14619,
    "h": 335
  },
  "luminance": 0.06797
}

Semantic roles & 50–950 ramp

primary
#7C266E
secondary
#50AE5F
accent
#DC634B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C266E

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

Preview Lab → · Contrast checker → · Palette generator →

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