#7D258E#7D258E

#7D258E is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.7% C 0.175 H 320.6°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#7D258E
RGBrgb(125, 37, 142)
HSLhsl(290, 59%, 35%)
HSVhsv(290, 74%, 56%)
CMYKcmyk(12%, 73.9%, 0%, 44.3%)
CIE-LABlab(33.21, 51.93, -39.74)
CIE-LCHlch(33.21, 65.39, 322.58°)
OKLaboklab(44.71% 0.1356 -0.1113)
OKLCHoklch(44.71% 0.175 320.6)
XYZxyz(14.0009, 7.6368, 26.3225)
Luminance0.0764 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D258E #368E25
analogous
#49258E #7D258E #8E256A
triadic
#7D258E #8E7D25 #258E7D
tetradic
#7D258E #8E4925 #368E25 #256A8E
square
#7D258E #8E4925 #368E25 #256A8E
split-complementary
#7D258E #6A8E25 #258E49
monochromatic
#280C2D #52185D #7D258E #A832BF #C05AD4

Accessibility & contrast

On white

8.31
#7D258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7D258E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D258E
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D258E#FFFFFF#000000##FFFFFF
##7D258E1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#30518C
Tritanopia (blue-blind)
#7E3957
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d258e;
/* rgb */ color: rgb(125, 37, 142);
/* oklch */ color: oklch(44.7% 0.175 320.6);
Tailwind
colors: {
  custom: {
    50: '#a669b0',
    500: '#7d258e',
    950: '#000000',
  },
}
SCSS
$custom: #7d258e;
$custom-light: #a669b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d258e",
  "rgb": {
    "r": 125,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 290.286,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44706,
    "c": 0.17536,
    "h": 320.6
  },
  "luminance": 0.07636
}

Semantic roles & 50–950 ramp

primary
#7D258E
secondary
#66B956
accent
#E2465F
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D258E

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

Preview Lab → · Contrast checker → · Palette generator →

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