#7C256F#7C256F

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

Color values

HEX#7C256F
RGBrgb(124, 37, 111)
HSLhsl(309, 54%, 32%)
HSVhsv(309, 70%, 49%)
CMYKcmyk(0%, 70.2%, 10.5%, 51.4%)
CIE-LABlab(31.25, 46.08, -23.45)
CIE-LCHlch(31.25, 51.71, 333.03°)
OKLaboklab(42.68% 0.1338 -0.064)
OKLCHoklch(42.68% 0.148 334.4)
XYZxyz(11.8431, 6.7569, 15.7163)
Luminance0.0676 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C256F #257C32
analogous
#5E257C #7C256F #7C2544
triadic
#7C256F #6F7C25 #256F7C
tetradic
#7C256F #7C5E25 #257C32 #25447C
square
#7C256F #7C5E25 #257C32 #25447C
split-complementary
#7C256F #447C25 #257C5E
monochromatic
#1E091B #4D1745 #7C256F #AB3399 #CB50B9

Accessibility & contrast

On white

8.93
#7C256F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C256F
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C256F#FFFFFF#000000##FFFFFF
##7C256F1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244171
Deuteranopia (green-blind)
#424E6D
Tritanopia (blue-blind)
#822C46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c256f;
/* rgb */ color: rgb(124, 37, 111);
/* oklch */ color: oklch(42.7% 0.148 334.4);
Tailwind
colors: {
  custom: {
    50: '#a56798',
    500: '#7c256f',
    950: '#000000',
  },
}
SCSS
$custom: #7c256f;
$custom-light: #a56798;
$custom-dark: #000000;
JSON
{
  "hex": "#7c256f",
  "rgb": {
    "r": 124,
    "g": 37,
    "b": 111
  },
  "hsl": {
    "h": 308.966,
    "s": 54.037,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42677,
    "c": 0.14835,
    "h": 334.4
  },
  "luminance": 0.06756
}

Semantic roles & 50–950 ramp

primary
#7C256F
secondary
#4FAE5D
accent
#DD604A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C256F

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

Preview Lab → · Contrast checker → · Palette generator →

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