#7B256F#7B256F

#7B256F is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.5% C 0.148 H 333.9°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#7B256F
RGBrgb(123, 37, 111)
HSLhsl(308, 54%, 31%)
HSVhsv(308, 70%, 48%)
CMYKcmyk(0%, 69.9%, 9.8%, 51.8%)
CIE-LABlab(31.07, 45.82, -23.74)
CIE-LCHlch(31.07, 51.60, 332.61°)
OKLaboklab(42.52% 0.1327 -0.0649)
OKLCHoklch(42.52% 0.148 333.9)
XYZxyz(11.6993, 6.6827, 15.7096)
Luminance0.0668 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B256F #257B31
analogous
#5C257B #7B256F #7B2544
triadic
#7B256F #6F7B25 #256F7B
tetradic
#7B256F #7B5C25 #257B31 #25447B
square
#7B256F #7B5C25 #257B31 #25447B
split-complementary
#7B256F #447B25 #257B5C
monochromatic
#1D091A #4C1745 #7B256F #AA3399 #CA50B9

Accessibility & contrast

On white

8.99
#7B256F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7B256F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B256F
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B256F#FFFFFF#000000##FFFFFF
##7B256F1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234171
Deuteranopia (green-blind)
#414E6D
Tritanopia (blue-blind)
#812C46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b256f;
/* rgb */ color: rgb(123, 37, 111);
/* oklch */ color: oklch(42.5% 0.148 333.9);
Tailwind
colors: {
  custom: {
    50: '#a46798',
    500: '#7b256f',
    950: '#000000',
  },
}
SCSS
$custom: #7b256f;
$custom-light: #a46798;
$custom-dark: #000000;
JSON
{
  "hex": "#7b256f",
  "rgb": {
    "r": 123,
    "g": 37,
    "b": 111
  },
  "hsl": {
    "h": 308.372,
    "s": 53.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42518,
    "c": 0.14772,
    "h": 333.9
  },
  "luminance": 0.06682
}

Semantic roles & 50–950 ramp

primary
#7B256F
secondary
#4FAD5C
accent
#DD5F4B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7B256F

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

Preview Lab → · Contrast checker → · Palette generator →

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