#7C256E#7C256E

#7C256E is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.6% C 0.148 H 335.0°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#7C256E
RGBrgb(124, 37, 110)
HSLhsl(310, 54%, 32%)
HSVhsv(310, 70%, 49%)
CMYKcmyk(0%, 70.2%, 11.3%, 51.4%)
CIE-LABlab(31.20, 45.92, -22.89)
CIE-LCHlch(31.20, 51.31, 333.50°)
OKLaboklab(42.62% 0.1337 -0.0625)
OKLCHoklch(42.62% 0.148 335)
XYZxyz(11.7883, 6.7350, 15.4280)
Luminance0.0673 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C256E #257C33
analogous
#5F257C #7C256E #7C2543
triadic
#7C256E #6E7C25 #256E7C
tetradic
#7C256E #7C5F25 #257C33 #25437C
square
#7C256E #7C5F25 #257C33 #25437C
split-complementary
#7C256E #437C25 #257C5F
monochromatic
#1E091A #4D1744 #7C256E #AB3398 #CB50B7

Accessibility & contrast

On white

8.95
#7C256E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7C256E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C256E
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C256E#FFFFFF#000000##FFFFFF
##7C256E1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254170
Deuteranopia (green-blind)
#424E6C
Tritanopia (blue-blind)
#822B46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7c256e;
/* rgb */ color: rgb(124, 37, 110);
/* oklch */ color: oklch(42.6% 0.148 335.0);
Tailwind
colors: {
  custom: {
    50: '#a56798',
    500: '#7c256e',
    950: '#000000',
  },
}
SCSS
$custom: #7c256e;
$custom-light: #a56798;
$custom-dark: #000000;
JSON
{
  "hex": "#7c256e",
  "rgb": {
    "r": 124,
    "g": 37,
    "b": 110
  },
  "hsl": {
    "h": 309.655,
    "s": 54.037,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42624,
    "c": 0.14756,
    "h": 335
  },
  "luminance": 0.06734
}

Semantic roles & 50–950 ramp

primary
#7C256E
secondary
#4FAE5E
accent
#DD624A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C256E

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

Preview Lab → · Contrast checker → · Palette generator →

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