#7B256E#7B256E

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

Color values

HEX#7B256E
RGBrgb(123, 37, 110)
HSLhsl(309, 54%, 31%)
HSVhsv(309, 70%, 48%)
CMYKcmyk(0%, 69.9%, 10.6%, 51.8%)
CIE-LABlab(31.02, 45.65, -23.18)
CIE-LCHlch(31.02, 51.20, 333.08°)
OKLaboklab(42.46% 0.1326 -0.0633)
OKLCHoklch(42.46% 0.147 334.5)
XYZxyz(11.6445, 6.6608, 15.4212)
Luminance0.0666 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B256E #257B32
analogous
#5D257B #7B256E #7B2543
triadic
#7B256E #6E7B25 #256E7B
tetradic
#7B256E #7B5D25 #257B32 #25437B
square
#7B256E #7B5D25 #257B32 #25437B
split-complementary
#7B256E #437B25 #257B5D
monochromatic
#1D091A #4C1744 #7B256E #AA3398 #CA50B8

Accessibility & contrast

On white

9.01
#7B256E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B256E
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B256E#FFFFFF#000000##FFFFFF
##7B256E1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b256e;
/* rgb */ color: rgb(123, 37, 110);
/* oklch */ color: oklch(42.5% 0.147 334.5);
Tailwind
colors: {
  custom: {
    50: '#a46798',
    500: '#7b256e',
    950: '#000000',
  },
}
SCSS
$custom: #7b256e;
$custom-light: #a46798;
$custom-dark: #000000;
JSON
{
  "hex": "#7b256e",
  "rgb": {
    "r": 123,
    "g": 37,
    "b": 110
  },
  "hsl": {
    "h": 309.07,
    "s": 53.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42464,
    "c": 0.14691,
    "h": 334.5
  },
  "luminance": 0.0666
}

Semantic roles & 50–950 ramp

primary
#7B256E
secondary
#4FAD5D
accent
#DD614B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7B256E

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

Preview Lab → · Contrast checker → · Palette generator →

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