#7C258B#7C258B

#7C258B is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.4% C 0.172 H 321.4°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#7C258B
RGBrgb(124, 37, 139)
HSLhsl(291, 58%, 35%)
HSVhsv(291, 73%, 55%)
CMYKcmyk(10.8%, 73.4%, 0%, 45.5%)
CIE-LABlab(32.86, 51.13, -38.46)
CIE-LCHlch(32.86, 63.98, 323.05°)
OKLaboklab(44.36% 0.1345 -0.1076)
OKLCHoklch(44.36% 0.172 321.4)
XYZxyz(13.6334, 7.4730, 25.1454)
Luminance0.0747 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C258B #348B25
analogous
#49258B #7C258B #8B2567
triadic
#7C258B #8B7C25 #258B7C
tetradic
#7C258B #8B4925 #348B25 #25678B
square
#7C258B #8B4925 #348B25 #25678B
split-complementary
#7C258B #678B25 #258B49
monochromatic
#260B2A #51185B #7C258B #A732BB #C058D3

Accessibility & contrast

On white

8.42
#7C258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C258B
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C258B#FFFFFF#000000##FFFFFF
##7C258B1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#315089
Tritanopia (blue-blind)
#7D3856
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7c258b;
/* rgb */ color: rgb(124, 37, 139);
/* oklch */ color: oklch(44.4% 0.172 321.4);
Tailwind
colors: {
  custom: {
    50: '#a568ad',
    500: '#7c258b',
    950: '#000000',
  },
}
SCSS
$custom: #7c258b;
$custom-light: #a568ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7c258b",
  "rgb": {
    "r": 124,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 291.176,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44359,
    "c": 0.17224,
    "h": 321.4
  },
  "luminance": 0.07472
}

Semantic roles & 50–950 ramp

primary
#7C258B
secondary
#63B755
accent
#E1475D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C258B

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

Preview Lab → · Contrast checker → · Palette generator →

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