#7D258C#7D258C

#7D258C is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.6% C 0.174 H 321.4°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#7D258C
RGBrgb(125, 37, 140)
HSLhsl(291, 58%, 35%)
HSVhsv(291, 74%, 55%)
CMYKcmyk(10.7%, 73.6%, 0%, 45.1%)
CIE-LABlab(33.09, 51.55, -38.71)
CIE-LCHlch(33.09, 64.46, 323.09°)
OKLaboklab(44.57% 0.1357 -0.1083)
OKLCHoklch(44.57% 0.174 321.4)
XYZxyz(13.8521, 7.5773, 25.5388)
Luminance0.0758 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D258C #348C25
analogous
#4A258C #7D258C #8C2568
triadic
#7D258C #8C7D25 #258C7D
tetradic
#7D258C #8C4A25 #348C25 #25688C
square
#7D258C #8C4A25 #348C25 #25688C
split-complementary
#7D258C #688C25 #258C4A
monochromatic
#270B2B #52185C #7D258C #A832BC #C158D3

Accessibility & contrast

On white

8.35
#7D258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7D258C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D258C
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D258C#FFFFFF#000000##FFFFFF
##7D258C1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488F
Deuteranopia (green-blind)
#32518A
Tritanopia (blue-blind)
#7E3856
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d258c;
/* rgb */ color: rgb(125, 37, 140);
/* oklch */ color: oklch(44.6% 0.174 321.4);
Tailwind
colors: {
  custom: {
    50: '#a669ae',
    500: '#7d258c',
    950: '#000000',
  },
}
SCSS
$custom: #7d258c;
$custom-light: #a669ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7d258c",
  "rgb": {
    "r": 125,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 291.262,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44574,
    "c": 0.17358,
    "h": 321.4
  },
  "luminance": 0.07577
}

Semantic roles & 50–950 ramp

primary
#7D258C
secondary
#64B855
accent
#E1465D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D258C

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

Preview Lab → · Contrast checker → · Palette generator →

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