#7C267D#7C267D

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

Color values

HEX#7C267D
RGBrgb(124, 38, 125)
HSLhsl(299, 53%, 32%)
HSVhsv(299, 70%, 49%)
CMYKcmyk(0.8%, 69.6%, 0%, 51%)
CIE-LABlab(32.15, 48.11, -30.88)
CIE-LCHlch(32.15, 57.17, 327.31°)
OKLaboklab(43.58% 0.1337 -0.0855)
OKLCHoklch(43.58% 0.159 327.4)
XYZxyz(12.7068, 7.1528, 20.1094)
Luminance0.0715 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C267D #277D26
analogous
#51267D #7C267D #7D2653
triadic
#7C267D #7D7C26 #267D7C
tetradic
#7C267D #7D5126 #277D26 #26537D
square
#7C267D #7D5126 #277D26 #26537D
split-complementary
#7C267D #537D26 #267D51
monochromatic
#1F091F #4D184E #7C267D #AB34AC #C953CB

Accessibility & contrast

On white

8.64
#7C267D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7C267D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C267D
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C267D#FFFFFF#000000##FFFFFF
##7C267D1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18457F
Deuteranopia (green-blind)
#3B507B
Tritanopia (blue-blind)
#80334E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7c267d;
/* rgb */ color: rgb(124, 38, 125);
/* oklch */ color: oklch(43.6% 0.159 327.4);
Tailwind
colors: {
  custom: {
    50: '#a568a3',
    500: '#7c267d',
    950: '#000000',
  },
}
SCSS
$custom: #7c267d;
$custom-light: #a568a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c267d",
  "rgb": {
    "r": 124,
    "g": 38,
    "b": 125
  },
  "hsl": {
    "h": 299.31,
    "s": 53.374,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43579,
    "c": 0.15864,
    "h": 327.4
  },
  "luminance": 0.07152
}

Semantic roles & 50–950 ramp

primary
#7C267D
secondary
#51AF50
accent
#DD4B4D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7C267D

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

Preview Lab → · Contrast checker → · Palette generator →

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