#7C257E#7C257E

#7C257E is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.5% C 0.161 H 327.0°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#7C257E
RGBrgb(124, 37, 126)
HSLhsl(299, 55%, 32%)
HSVhsv(299, 71%, 49%)
CMYKcmyk(1.6%, 70.6%, 0%, 50.6%)
CIE-LABlab(32.07, 48.69, -31.64)
CIE-LCHlch(32.07, 58.07, 326.99°)
OKLaboklab(43.54% 0.1348 -0.0877)
OKLCHoklch(43.54% 0.161 327)
XYZxyz(12.7394, 7.1154, 20.4370)
Luminance0.0712 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C257E #277E25
analogous
#50257E #7C257E #7E2554
triadic
#7C257E #7E7C25 #257E7C
tetradic
#7C257E #7E5025 #277E25 #25547E
square
#7C257E #7E5025 #277E25 #25547E
split-complementary
#7C257E #547E25 #257E50
monochromatic
#1F091F #4D174F #7C257E #AB33AD #C951CC

Accessibility & contrast

On white

8.67
#7C257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7C257E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C257E
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C257E#FFFFFF#000000##FFFFFF
##7C257E1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154481
Deuteranopia (green-blind)
#3A4F7C
Tritanopia (blue-blind)
#80324E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7c257e;
/* rgb */ color: rgb(124, 37, 126);
/* oklch */ color: oklch(43.5% 0.161 327.0);
Tailwind
colors: {
  custom: {
    50: '#a568a4',
    500: '#7c257e',
    950: '#000000',
  },
}
SCSS
$custom: #7c257e;
$custom-light: #a568a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c257e",
  "rgb": {
    "r": 124,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 298.652,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43537,
    "c": 0.1608,
    "h": 327
  },
  "luminance": 0.07115
}

Semantic roles & 50–950 ramp

primary
#7C257E
secondary
#51B04F
accent
#DE4A4D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7C257E

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

Preview Lab → · Contrast checker → · Palette generator →

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