#7B256C#7B256C

#7B256C is a dark, vivid pink. Relative luminance 0.066; OKLCH L 42.4% C 0.145 H 335.6°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#7B256C
RGBrgb(123, 37, 108)
HSLhsl(310, 54%, 31%)
HSVhsv(310, 70%, 48%)
CMYKcmyk(0%, 69.9%, 12.2%, 51.8%)
CIE-LABlab(30.92, 45.32, -22.06)
CIE-LCHlch(30.92, 50.40, 334.04°)
OKLaboklab(42.36% 0.1323 -0.0601)
OKLCHoklch(42.36% 0.145 335.6)
XYZxyz(11.5369, 6.6178, 14.8542)
Luminance0.0662 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B256C #257B34
analogous
#5F257B #7B256C #7B2541
triadic
#7B256C #6C7B25 #256C7B
tetradic
#7B256C #7B5F25 #257B34 #25417B
square
#7B256C #7B5F25 #257B34 #25417B
split-complementary
#7B256C #417B25 #257B5F
monochromatic
#1D0919 #4C1743 #7B256C #AA3395 #CA50B5

Accessibility & contrast

On white

9.04
#7B256C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7B256C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B256C
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B256C#FFFFFF#000000##FFFFFF
##7B256C1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b256c;
/* rgb */ color: rgb(123, 37, 108);
/* oklch */ color: oklch(42.4% 0.145 335.6);
Tailwind
colors: {
  custom: {
    50: '#a46796',
    500: '#7b256c',
    950: '#000000',
  },
}
SCSS
$custom: #7b256c;
$custom-light: #a46796;
$custom-dark: #000000;
JSON
{
  "hex": "#7b256c",
  "rgb": {
    "r": 123,
    "g": 37,
    "b": 108
  },
  "hsl": {
    "h": 310.465,
    "s": 53.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42357,
    "c": 0.14533,
    "h": 335.6
  },
  "luminance": 0.06617
}

Semantic roles & 50–950 ramp

primary
#7B256C
secondary
#4FAD5F
accent
#DD644B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7B256C

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

Preview Lab → · Contrast checker → · Palette generator →

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