#7B237E#7B237E

#7B237E is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.2% C 0.163 H 326.5°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#7B237E
RGBrgb(123, 35, 126)
HSLhsl(298, 57%, 32%)
HSVhsv(298, 72%, 49%)
CMYKcmyk(2.4%, 72.2%, 0%, 50.6%)
CIE-LABlab(31.62, 49.23, -32.35)
CIE-LCHlch(31.62, 58.91, 326.69°)
OKLaboklab(43.19% 0.1358 -0.0898)
OKLCHoklch(43.19% 0.163 326.5)
XYZxyz(12.5351, 6.9202, 20.4101)
Luminance0.0692 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B237E #267E23
analogous
#4E237E #7B237E #7E2354
triadic
#7B237E #7E7B23 #237E7B
tetradic
#7B237E #7E4E23 #267E23 #23547E
square
#7B237E #7E4E23 #267E23 #23547E
split-complementary
#7B237E #547E23 #237E4E
monochromatic
#1D081E #4C164E #7B237E #AA30AE #CA4ECE

Accessibility & contrast

On white

8.81
#7B237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7B237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B237E
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B237E#FFFFFF#000000##FFFFFF
##7B237E1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104381
Deuteranopia (green-blind)
#384E7C
Tritanopia (blue-blind)
#7E314E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b237e;
/* rgb */ color: rgb(123, 35, 126);
/* oklch */ color: oklch(43.2% 0.163 326.5);
Tailwind
colors: {
  custom: {
    50: '#a467a4',
    500: '#7b237e',
    950: '#000000',
  },
}
SCSS
$custom: #7b237e;
$custom-light: #a467a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b237e",
  "rgb": {
    "r": 123,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 298.022,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43185,
    "c": 0.16279,
    "h": 326.5
  },
  "luminance": 0.06919
}

Semantic roles & 50–950 ramp

primary
#7B237E
secondary
#50B04C
accent
#E0484D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B237E

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

Preview Lab → · Contrast checker → · Palette generator →

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