#7B256D#7B256D

#7B256D is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.4% C 0.146 H 335.0°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#7B256D
RGBrgb(123, 37, 109)
HSLhsl(310, 54%, 31%)
HSVhsv(310, 70%, 48%)
CMYKcmyk(0%, 69.9%, 11.4%, 51.8%)
CIE-LABlab(30.97, 45.48, -22.62)
CIE-LCHlch(30.97, 50.80, 333.56°)
OKLaboklab(42.41% 0.1325 -0.0617)
OKLCHoklch(42.41% 0.146 335)
XYZxyz(11.5904, 6.6392, 15.1361)
Luminance0.0664 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B256D #257B33
analogous
#5E257B #7B256D #7B2542
triadic
#7B256D #6D7B25 #256D7B
tetradic
#7B256D #7B5E25 #257B33 #25427B
square
#7B256D #7B5E25 #257B33 #25427B
split-complementary
#7B256D #427B25 #257B5E
monochromatic
#1D091A #4C1743 #7B256D #AA3397 #CA50B6

Accessibility & contrast

On white

9.02
#7B256D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7B256D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B256D
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B256D#FFFFFF#000000##FFFFFF
##7B256D1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25416F
Deuteranopia (green-blind)
#424D6B
Tritanopia (blue-blind)
#812B45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b256d;
/* rgb */ color: rgb(123, 37, 109);
/* oklch */ color: oklch(42.4% 0.146 335.0);
Tailwind
colors: {
  custom: {
    50: '#a46797',
    500: '#7b256d',
    950: '#000000',
  },
}
SCSS
$custom: #7b256d;
$custom-light: #a46797;
$custom-dark: #000000;
JSON
{
  "hex": "#7b256d",
  "rgb": {
    "r": 123,
    "g": 37,
    "b": 109
  },
  "hsl": {
    "h": 309.767,
    "s": 53.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.4241,
    "c": 0.14612,
    "h": 335
  },
  "luminance": 0.06638
}

Semantic roles & 50–950 ramp

primary
#7B256D
secondary
#4FAD5E
accent
#DD634B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7B256D

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

Preview Lab → · Contrast checker → · Palette generator →

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