#7E258D#7E258D

#7E258D is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.8% C 0.175 H 321.5°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#7E258D
RGBrgb(126, 37, 141)
HSLhsl(291, 58%, 35%)
HSVhsv(291, 74%, 55%)
CMYKcmyk(10.6%, 73.8%, 0%, 44.7%)
CIE-LABlab(33.31, 51.96, -38.96)
CIE-LCHlch(33.31, 64.94, 323.14°)
OKLaboklab(44.79% 0.1369 -0.1089)
OKLCHoklch(44.79% 0.175 321.5)
XYZxyz(14.0729, 7.6826, 25.9358)
Luminance0.0768 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E258D #348D25
analogous
#4A258D #7E258D #8D2568
triadic
#7E258D #8D7E25 #258D7E
tetradic
#7E258D #8D4A25 #348D25 #25688D
square
#7E258D #8D4A25 #348D25 #25688D
split-complementary
#7E258D #688D25 #258D4A
monochromatic
#270C2C #53185D #7E258D #A932BD #C259D3

Accessibility & contrast

On white

8.28
#7E258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7E258D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E258D
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E258D#FFFFFF#000000##FFFFFF
##7E258D1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#32528B
Tritanopia (blue-blind)
#7F3857
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e258d;
/* rgb */ color: rgb(126, 37, 141);
/* oklch */ color: oklch(44.8% 0.175 321.5);
Tailwind
colors: {
  custom: {
    50: '#a769af',
    500: '#7e258d',
    950: '#000000',
  },
}
SCSS
$custom: #7e258d;
$custom-light: #a769af;
$custom-dark: #000000;
JSON
{
  "hex": "#7e258d",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 291.346,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44788,
    "c": 0.17492,
    "h": 321.5
  },
  "luminance": 0.07682
}

Semantic roles & 50–950 ramp

primary
#7E258D
secondary
#64B856
accent
#E2465D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E258D

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

Preview Lab → · Contrast checker → · Palette generator →

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