#7B257E#7B257E

#7B257E is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.4% C 0.160 H 326.5°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#7B257E
RGBrgb(123, 37, 126)
HSLhsl(298, 55%, 32%)
HSVhsv(298, 71%, 49%)
CMYKcmyk(2.4%, 70.6%, 0%, 50.6%)
CIE-LABlab(31.90, 48.45, -31.91)
CIE-LCHlch(31.90, 58.01, 326.63°)
OKLaboklab(43.38% 0.1336 -0.0885)
OKLCHoklch(43.38% 0.16 326.5)
XYZxyz(12.5956, 7.0413, 20.4303)
Luminance0.0704 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B257E #287E25
analogous
#4F257E #7B257E #7E2554
triadic
#7B257E #7E7B25 #257E7B
tetradic
#7B257E #7E4F25 #287E25 #25547E
square
#7B257E #7E4F25 #287E25 #25547E
split-complementary
#7B257E #547E25 #257E4F
monochromatic
#1F091F #4D174F #7B257E #A933AD #C851CC

Accessibility & contrast

On white

8.72
#7B257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7B257E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B257E
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B257E#FFFFFF#000000##FFFFFF
##7B257E1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144481
Deuteranopia (green-blind)
#394F7C
Tritanopia (blue-blind)
#7E324E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7b257e;
/* rgb */ color: rgb(123, 37, 126);
/* oklch */ color: oklch(43.4% 0.160 326.5);
Tailwind
colors: {
  custom: {
    50: '#a468a4',
    500: '#7b257e',
    950: '#000000',
  },
}
SCSS
$custom: #7b257e;
$custom-light: #a468a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b257e",
  "rgb": {
    "r": 123,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 297.978,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43383,
    "c": 0.16028,
    "h": 326.5
  },
  "luminance": 0.0704
}

Semantic roles & 50–950 ramp

primary
#7B257E
secondary
#52B04F
accent
#DE4A4F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7B257E

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

Preview Lab → · Contrast checker → · Palette generator →

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