#7E258F#7E258F

#7E258F is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.9% C 0.177 H 320.7°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#7E258F
RGBrgb(126, 37, 143)
HSLhsl(290, 59%, 35%)
HSVhsv(290, 74%, 56%)
CMYKcmyk(11.9%, 74.1%, 0%, 43.9%)
CIE-LABlab(33.44, 52.35, -39.98)
CIE-LCHlch(33.44, 65.87, 322.63°)
OKLaboklab(44.92% 0.1367 -0.1119)
OKLCHoklch(44.92% 0.177 320.7)
XYZxyz(14.2231, 7.7427, 26.7266)
Luminance0.0774 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E258F #368F25
analogous
#49258F #7E258F #8F256B
triadic
#7E258F #8F7E25 #258F7E
tetradic
#7E258F #8F4925 #368F25 #256B8F
square
#7E258F #8F4925 #368F25 #256B8F
split-complementary
#7E258F #6B8F25 #258F49
monochromatic
#280C2E #53185E #7E258F #A932C0 #C15AD4

Accessibility & contrast

On white

8.24
#7E258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7E258F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E258F
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E258F#FFFFFF#000000##FFFFFF
##7E258F1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#30528D
Tritanopia (blue-blind)
#7F3958
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e258f;
/* rgb */ color: rgb(126, 37, 143);
/* oklch */ color: oklch(44.9% 0.177 320.7);
Tailwind
colors: {
  custom: {
    50: '#a769b0',
    500: '#7e258f',
    950: '#000000',
  },
}
SCSS
$custom: #7e258f;
$custom-light: #a769b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e258f",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 290.377,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.4492,
    "c": 0.1767,
    "h": 320.7
  },
  "luminance": 0.07742
}

Semantic roles & 50–950 ramp

primary
#7E258F
secondary
#67B957
accent
#E2465F
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E258F

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

Preview Lab → · Contrast checker → · Palette generator →

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