#7B257D#7B257D

#7B257D is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.3% C 0.159 H 326.9°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#7B257D
RGBrgb(123, 37, 125)
HSLhsl(299, 54%, 32%)
HSVhsv(299, 70%, 49%)
CMYKcmyk(1.6%, 70.4%, 0%, 51%)
CIE-LABlab(31.84, 48.26, -31.38)
CIE-LCHlch(31.84, 57.57, 326.97°)
OKLaboklab(43.32% 0.1336 -0.0869)
OKLCHoklch(43.32% 0.159 326.9)
XYZxyz(12.5314, 7.0156, 20.0922)
Luminance0.0702 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B257D #277D25
analogous
#4F257D #7B257D #7D2553
triadic
#7B257D #7D7B25 #257D7B
tetradic
#7B257D #7D4F25 #277D25 #25537D
square
#7B257D #7D4F25 #277D25 #25537D
split-complementary
#7B257D #537D25 #257D4F
monochromatic
#1E091F #4D174E #7B257D #A933AC #C951CB

Accessibility & contrast

On white

8.74
#7B257D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7B257D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B257D
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B257D#FFFFFF#000000##FFFFFF
##7B257D1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154480
Deuteranopia (green-blind)
#3A4F7B
Tritanopia (blue-blind)
#7F324E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7b257d;
/* rgb */ color: rgb(123, 37, 125);
/* oklch */ color: oklch(43.3% 0.159 326.9);
Tailwind
colors: {
  custom: {
    50: '#a468a3',
    500: '#7b257d',
    950: '#000000',
  },
}
SCSS
$custom: #7b257d;
$custom-light: #a468a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b257d",
  "rgb": {
    "r": 123,
    "g": 37,
    "b": 125
  },
  "hsl": {
    "h": 298.636,
    "s": 54.321,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43323,
    "c": 0.15941,
    "h": 326.9
  },
  "luminance": 0.07015
}

Semantic roles & 50–950 ramp

primary
#7B257D
secondary
#51AF4F
accent
#DE4A4D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7B257D

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

Preview Lab → · Contrast checker → · Palette generator →

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