#7E258C#7E258C

#7E258C is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.7% C 0.174 H 321.9°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#7E258C
RGBrgb(126, 37, 140)
HSLhsl(292, 58%, 35%)
HSVhsv(292, 74%, 55%)
CMYKcmyk(10%, 73.6%, 0%, 45.1%)
CIE-LABlab(33.25, 51.77, -38.44)
CIE-LCHlch(33.25, 64.48, 323.41°)
OKLaboklab(44.72% 0.1369 -0.1074)
OKLCHoklch(44.72% 0.174 321.9)
XYZxyz(13.9989, 7.6530, 25.5457)
Luminance0.0765 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E258C #338C25
analogous
#4B258C #7E258C #8C2566
triadic
#7E258C #8C7E25 #258C7E
tetradic
#7E258C #8C4B25 #338C25 #25668C
square
#7E258C #8C4B25 #338C25 #25668C
split-complementary
#7E258C #668C25 #258C4B
monochromatic
#270B2B #52185C #7E258C #AA32BC #C258D3

Accessibility & contrast

On white

8.30
#7E258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E258C
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E258C#FFFFFF#000000##FFFFFF
##7E258C1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e258c;
/* rgb */ color: rgb(126, 37, 140);
/* oklch */ color: oklch(44.7% 0.174 321.9);
Tailwind
colors: {
  custom: {
    50: '#a769ae',
    500: '#7e258c',
    950: '#000000',
  },
}
SCSS
$custom: #7e258c;
$custom-light: #a769ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7e258c",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 291.845,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44722,
    "c": 0.17403,
    "h": 321.9
  },
  "luminance": 0.07652
}

Semantic roles & 50–950 ramp

primary
#7E258C
secondary
#63B855
accent
#E1465B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E258C

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

Preview Lab → · Contrast checker → · Palette generator →

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