#7B258D#7B258D

#7B258D is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.3% C 0.174 H 320.1°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#7B258D
RGBrgb(123, 37, 141)
HSLhsl(290, 58%, 35%)
HSVhsv(290, 74%, 55%)
CMYKcmyk(12.8%, 73.8%, 0%, 44.7%)
CIE-LABlab(32.83, 51.29, -39.76)
CIE-LCHlch(32.83, 64.90, 322.22°)
OKLaboklab(44.35% 0.1331 -0.1114)
OKLCHoklch(44.35% 0.174 320.1)
XYZxyz(13.6371, 7.4579, 25.9153)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B258D #378D25
analogous
#47258D #7B258D #8D256B
triadic
#7B258D #8D7B25 #258D7B
tetradic
#7B258D #8D4725 #378D25 #256B8D
square
#7B258D #8D4725 #378D25 #256B8D
split-complementary
#7B258D #6B8D25 #258D47
monochromatic
#260C2C #51185D #7B258D #A532BD #BE59D3

Accessibility & contrast

On white

8.43
#7B258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7B258D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B258D
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B258D#FFFFFF#000000##FFFFFF
##7B258D1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b258d;
/* rgb */ color: rgb(123, 37, 141);
/* oklch */ color: oklch(44.3% 0.174 320.1);
Tailwind
colors: {
  custom: {
    50: '#a568af',
    500: '#7b258d',
    950: '#000000',
  },
}
SCSS
$custom: #7b258d;
$custom-light: #a568af;
$custom-dark: #000000;
JSON
{
  "hex": "#7b258d",
  "rgb": {
    "r": 123,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 289.615,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44345,
    "c": 0.17359,
    "h": 320.1
  },
  "luminance": 0.07457
}

Semantic roles & 50–950 ramp

primary
#7B258D
secondary
#67B856
accent
#E24661
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B258D

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

Preview Lab → · Contrast checker → · Palette generator →

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