#7B258B#7B258B

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

Color values

HEX#7B258B
RGBrgb(123, 37, 139)
HSLhsl(291, 58%, 35%)
HSVhsv(291, 73%, 55%)
CMYKcmyk(11.5%, 73.4%, 0%, 45.5%)
CIE-LABlab(32.70, 50.90, -38.73)
CIE-LCHlch(32.70, 63.96, 322.73°)
OKLaboklab(44.21% 0.1333 -0.1084)
OKLCHoklch(44.21% 0.172 320.9)
XYZxyz(13.4896, 7.3989, 25.1387)
Luminance0.0740 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B258B #358B25
analogous
#48258B #7B258B #8B2568
triadic
#7B258B #8B7B25 #258B7B
tetradic
#7B258B #8B4825 #358B25 #25688B
square
#7B258B #8B4825 #358B25 #25688B
split-complementary
#7B258B #688B25 #258B48
monochromatic
#250B2A #50185B #7B258B #A632BB #BF58D3

Accessibility & contrast

On white

8.47
#7B258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B258B
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B258B#FFFFFF#000000##FFFFFF
##7B258B1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#305089
Tritanopia (blue-blind)
#7C3856
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b258b;
/* rgb */ color: rgb(123, 37, 139);
/* oklch */ color: oklch(44.2% 0.172 320.9);
Tailwind
colors: {
  custom: {
    50: '#a468ad',
    500: '#7b258b',
    950: '#000000',
  },
}
SCSS
$custom: #7b258b;
$custom-light: #a468ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7b258b",
  "rgb": {
    "r": 123,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 290.588,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44211,
    "c": 0.17178,
    "h": 320.9
  },
  "luminance": 0.07398
}

Semantic roles & 50–950 ramp

primary
#7B258B
secondary
#64B755
accent
#E1475F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B258B

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

Preview Lab → · Contrast checker → · Palette generator →

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