#7E258B#7E258B

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

Color values

HEX#7E258B
RGBrgb(126, 37, 139)
HSLhsl(292, 58%, 35%)
HSVhsv(292, 73%, 55%)
CMYKcmyk(9.4%, 73.4%, 0%, 45.5%)
CIE-LABlab(33.19, 51.58, -37.92)
CIE-LCHlch(33.19, 64.02, 323.67°)
OKLaboklab(44.66% 0.137 -0.1059)
OKLCHoklch(44.66% 0.173 322.3)
XYZxyz(13.9255, 7.6236, 25.1591)
Luminance0.0762 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E258B #328B25
analogous
#4B258B #7E258B #8B2565
triadic
#7E258B #8B7E25 #258B7E
tetradic
#7E258B #8B4B25 #328B25 #25658B
square
#7E258B #8B4B25 #328B25 #25658B
split-complementary
#7E258B #658B25 #258B4B
monochromatic
#260B2A #52185B #7E258B #AA32BB #C358D3

Accessibility & contrast

On white

8.32
#7E258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E258B
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E258B#FFFFFF#000000##FFFFFF
##7E258B1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488E
Deuteranopia (green-blind)
#335189
Tritanopia (blue-blind)
#803856
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e258b;
/* rgb */ color: rgb(126, 37, 139);
/* oklch */ color: oklch(44.7% 0.173 322.3);
Tailwind
colors: {
  custom: {
    50: '#a769ad',
    500: '#7e258b',
    950: '#000000',
  },
}
SCSS
$custom: #7e258b;
$custom-light: #a769ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e258b",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 292.353,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44657,
    "c": 0.17315,
    "h": 322.3
  },
  "luminance": 0.07623
}

Semantic roles & 50–950 ramp

primary
#7E258B
secondary
#61B755
accent
#E1475A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E258B

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

Preview Lab → · Contrast checker → · Palette generator →

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