#7A258D#7A258D

#7A258D is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.2% C 0.173 H 319.6°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#7A258D
RGBrgb(122, 37, 141)
HSLhsl(289, 58%, 35%)
HSVhsv(289, 74%, 55%)
CMYKcmyk(13.5%, 73.8%, 0%, 44.7%)
CIE-LABlab(32.67, 51.07, -40.03)
CIE-LCHlch(32.67, 64.89, 321.91°)
OKLaboklab(44.2% 0.1319 -0.1122)
OKLCHoklch(44.2% 0.173 319.6)
XYZxyz(13.4947, 7.3845, 25.9087)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A258D #388D25
analogous
#46258D #7A258D #8D256C
triadic
#7A258D #8D7A25 #258D7A
tetradic
#7A258D #8D4625 #388D25 #256C8D
square
#7A258D #8D4625 #388D25 #256C8D
split-complementary
#7A258D #6C8D25 #258D46
monochromatic
#260C2C #50185D #7A258D #A432BD #BD59D3

Accessibility & contrast

On white

8.48
#7A258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7A258D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A258D
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A258D#FFFFFF#000000##FFFFFF
##7A258D1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#2D508B
Tritanopia (blue-blind)
#7A3957
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a258d;
/* rgb */ color: rgb(122, 37, 141);
/* oklch */ color: oklch(44.2% 0.173 319.6);
Tailwind
colors: {
  custom: {
    50: '#a468af',
    500: '#7a258d',
    950: '#000000',
  },
}
SCSS
$custom: #7a258d;
$custom-light: #a468af;
$custom-dark: #000000;
JSON
{
  "hex": "#7a258d",
  "rgb": {
    "r": 122,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 289.038,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44198,
    "c": 0.17317,
    "h": 319.6
  },
  "luminance": 0.07384
}

Semantic roles & 50–950 ramp

primary
#7A258D
secondary
#68B856
accent
#E24663
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7A258D

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

Preview Lab → · Contrast checker → · Palette generator →

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