#7C267E#7C267E

#7C267E is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.6% C 0.160 H 326.9°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#7C267E
RGBrgb(124, 38, 126)
HSLhsl(299, 54%, 32%)
HSVhsv(299, 70%, 49%)
CMYKcmyk(1.6%, 69.8%, 0%, 50.6%)
CIE-LABlab(32.21, 48.29, -31.41)
CIE-LCHlch(32.21, 57.61, 326.96°)
OKLaboklab(43.64% 0.1337 -0.087)
OKLCHoklch(43.64% 0.16 326.9)
XYZxyz(12.7710, 7.1785, 20.4476)
Luminance0.0718 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C267E #287E26
analogous
#50267E #7C267E #7E2654
triadic
#7C267E #7E7C26 #267E7C
tetradic
#7C267E #7E5026 #287E26 #26547E
square
#7C267E #7E5026 #287E26 #26547E
split-complementary
#7C267E #547E26 #267E50
monochromatic
#1F0A20 #4E184F #7C267E #AA34AD #C853CB

Accessibility & contrast

On white

8.62
#7C267E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7C267E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C267E
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C267E#FFFFFF#000000##FFFFFF
##7C267E1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174581
Deuteranopia (green-blind)
#3B507C
Tritanopia (blue-blind)
#80334F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7c267e;
/* rgb */ color: rgb(124, 38, 126);
/* oklch */ color: oklch(43.6% 0.160 326.9);
Tailwind
colors: {
  custom: {
    50: '#a568a4',
    500: '#7c267e',
    950: '#000000',
  },
}
SCSS
$custom: #7c267e;
$custom-light: #a568a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c267e",
  "rgb": {
    "r": 124,
    "g": 38,
    "b": 126
  },
  "hsl": {
    "h": 298.636,
    "s": 53.659,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43639,
    "c": 0.15951,
    "h": 326.9
  },
  "luminance": 0.07178
}

Semantic roles & 50–950 ramp

primary
#7C267E
secondary
#52B050
accent
#DD4B4E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7C267E

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

Preview Lab → · Contrast checker → · Palette generator →

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