#7C258A#7C258A

#7C258A is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.171 H 321.8°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#7C258A
RGBrgb(124, 37, 138)
HSLhsl(292, 58%, 34%)
HSVhsv(292, 73%, 54%)
CMYKcmyk(10.1%, 73.2%, 0%, 45.9%)
CIE-LABlab(32.80, 50.94, -37.95)
CIE-LCHlch(32.80, 63.52, 323.31°)
OKLaboklab(44.29% 0.1346 -0.1061)
OKLCHoklch(44.29% 0.171 321.8)
XYZxyz(13.5607, 7.4439, 24.7624)
Luminance0.0744 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C258A #338A25
analogous
#4A258A #7C258A #8A2566
triadic
#7C258A #8A7C25 #258A7C
tetradic
#7C258A #8A4A25 #338A25 #25668A
square
#7C258A #8A4A25 #338A25 #25668A
split-complementary
#7C258A #668A25 #258A4A
monochromatic
#250B29 #51185A #7C258A #A732BA #C157D2

Accessibility & contrast

On white

8.44
#7C258A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7C258A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C258A
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C258A#FFFFFF#000000##FFFFFF
##7C258A1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478D
Deuteranopia (green-blind)
#325088
Tritanopia (blue-blind)
#7D3855
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7c258a;
/* rgb */ color: rgb(124, 37, 138);
/* oklch */ color: oklch(44.3% 0.171 321.8);
Tailwind
colors: {
  custom: {
    50: '#a568ad',
    500: '#7c258a',
    950: '#000000',
  },
}
SCSS
$custom: #7c258a;
$custom-light: #a568ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7c258a",
  "rgb": {
    "r": 124,
    "g": 37,
    "b": 138
  },
  "hsl": {
    "h": 291.683,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44294,
    "c": 0.17134,
    "h": 321.8
  },
  "luminance": 0.07443
}

Semantic roles & 50–950 ramp

primary
#7C258A
secondary
#62B754
accent
#E1475C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C258A

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

Preview Lab → · Contrast checker → · Palette generator →

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