#7D258B#7D258B

#7D258B is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.5% C 0.173 H 321.8°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#7D258B
RGBrgb(125, 37, 139)
HSLhsl(292, 58%, 35%)
HSVhsv(292, 73%, 55%)
CMYKcmyk(10.1%, 73.4%, 0%, 45.5%)
CIE-LABlab(33.02, 51.35, -38.19)
CIE-LCHlch(33.02, 64.00, 323.36°)
OKLaboklab(44.51% 0.1357 -0.1067)
OKLCHoklch(44.51% 0.173 321.8)
XYZxyz(13.7787, 7.5480, 25.1522)
Luminance0.0755 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D258B #338B25
analogous
#4A258B #7D258B #8B2566
triadic
#7D258B #8B7D25 #258B7D
tetradic
#7D258B #8B4A25 #338B25 #25668B
square
#7D258B #8B4A25 #338B25 #25668B
split-complementary
#7D258B #668B25 #258B4A
monochromatic
#260B2A #52185B #7D258B #A832BB #C258D3

Accessibility & contrast

On white

8.37
#7D258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7D258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D258B
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D258B#FFFFFF#000000##FFFFFF
##7D258B1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#325189
Tritanopia (blue-blind)
#7E3856
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d258b;
/* rgb */ color: rgb(125, 37, 139);
/* oklch */ color: oklch(44.5% 0.173 321.8);
Tailwind
colors: {
  custom: {
    50: '#a669ad',
    500: '#7d258b',
    950: '#000000',
  },
}
SCSS
$custom: #7d258b;
$custom-light: #a669ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7d258b",
  "rgb": {
    "r": 125,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 291.765,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44508,
    "c": 0.17269,
    "h": 321.8
  },
  "luminance": 0.07547
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D258B

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

Preview Lab → · Contrast checker → · Palette generator →

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