#7B258A#7B258A

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

Color values

HEX#7B258A
RGBrgb(123, 37, 138)
HSLhsl(291, 58%, 34%)
HSVhsv(291, 73%, 54%)
CMYKcmyk(10.9%, 73.2%, 0%, 45.9%)
CIE-LABlab(32.63, 50.71, -38.22)
CIE-LCHlch(32.63, 63.50, 323.00°)
OKLaboklab(44.15% 0.1334 -0.1069)
OKLCHoklch(44.15% 0.171 321.3)
XYZxyz(13.4169, 7.3698, 24.7556)
Luminance0.0737 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B258A #348A25
analogous
#49258A #7B258A #8A2567
triadic
#7B258A #8A7B25 #258A7B
tetradic
#7B258A #8A4925 #348A25 #25678A
square
#7B258A #8A4925 #348A25 #25678A
split-complementary
#7B258A #678A25 #258A49
monochromatic
#250B29 #50185A #7B258A #A632BA #C057D2

Accessibility & contrast

On white

8.49
#7B258A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B258A
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B258A#FFFFFF#000000##FFFFFF
##7B258A1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478D
Deuteranopia (green-blind)
#315088
Tritanopia (blue-blind)
#7C3855
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b258a;
/* rgb */ color: rgb(123, 37, 138);
/* oklch */ color: oklch(44.1% 0.171 321.3);
Tailwind
colors: {
  custom: {
    50: '#a468ad',
    500: '#7b258a',
    950: '#000000',
  },
}
SCSS
$custom: #7b258a;
$custom-light: #a468ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7b258a",
  "rgb": {
    "r": 123,
    "g": 37,
    "b": 138
  },
  "hsl": {
    "h": 291.089,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44145,
    "c": 0.17089,
    "h": 321.3
  },
  "luminance": 0.07369
}

Semantic roles & 50–950 ramp

primary
#7B258A
secondary
#63B754
accent
#E1475E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B258A

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

Preview Lab → · Contrast checker → · Palette generator →

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