#7A258B#7A258B

#7A258B is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.171 H 320.4°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#7A258B
RGBrgb(122, 37, 139)
HSLhsl(290, 58%, 35%)
HSVhsv(290, 73%, 55%)
CMYKcmyk(12.2%, 73.4%, 0%, 45.5%)
CIE-LABlab(32.54, 50.68, -39.00)
CIE-LCHlch(32.54, 63.95, 322.42°)
OKLaboklab(44.06% 0.132 -0.1092)
OKLCHoklch(44.06% 0.171 320.4)
XYZxyz(13.3472, 7.3255, 25.1320)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A258B #368B25
analogous
#47258B #7A258B #8B2569
triadic
#7A258B #8B7A25 #258B7A
tetradic
#7A258B #8B4725 #368B25 #25698B
square
#7A258B #8B4725 #368B25 #25698B
split-complementary
#7A258B #698B25 #258B47
monochromatic
#250B2A #50185B #7A258B #A432BB #BE58D3

Accessibility & contrast

On white

8.52
#7A258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7A258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A258B
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A258B#FFFFFF#000000##FFFFFF
##7A258B1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#2F4F89
Tritanopia (blue-blind)
#7B3856
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a258b;
/* rgb */ color: rgb(122, 37, 139);
/* oklch */ color: oklch(44.1% 0.171 320.4);
Tailwind
colors: {
  custom: {
    50: '#a468ad',
    500: '#7a258b',
    950: '#000000',
  },
}
SCSS
$custom: #7a258b;
$custom-light: #a468ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7a258b",
  "rgb": {
    "r": 122,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 290,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44064,
    "c": 0.17135,
    "h": 320.4
  },
  "luminance": 0.07325
}

Semantic roles & 50–950 ramp

primary
#7A258B
secondary
#65B755
accent
#E14760
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7A258B

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

Preview Lab → · Contrast checker → · Palette generator →

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