#7B236F#7B236F

#7B236F is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.3% C 0.150 H 333.9°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#7B236F
RGBrgb(123, 35, 111)
HSLhsl(308, 56%, 31%)
HSVhsv(308, 72%, 48%)
CMYKcmyk(0%, 71.5%, 9.8%, 51.8%)
CIE-LABlab(30.79, 46.62, -24.18)
CIE-LCHlch(30.79, 52.52, 332.58°)
OKLaboklab(42.31% 0.1351 -0.0662)
OKLCHoklch(42.31% 0.15 333.9)
XYZxyz(11.6387, 6.5617, 15.6894)
Luminance0.0656 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B236F #237B2F
analogous
#5B237B #7B236F #7B2343
triadic
#7B236F #6F7B23 #236F7B
tetradic
#7B236F #7B5B23 #237B2F #23437B
square
#7B236F #7B5B23 #237B2F #23437B
split-complementary
#7B236F #437B23 #237B5B
monochromatic
#1C0819 #4B1544 #7B236F #AB319A #CC4CBB

Accessibility & contrast

On white

9.08
#7B236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7B236F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B236F
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B236F#FFFFFF#000000##FFFFFF
##7B236F1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214071
Deuteranopia (green-blind)
#404D6D
Tritanopia (blue-blind)
#812A46
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b236f;
/* rgb */ color: rgb(123, 35, 111);
/* oklch */ color: oklch(42.3% 0.150 333.9);
Tailwind
colors: {
  custom: {
    50: '#a46698',
    500: '#7b236f',
    950: '#000000',
  },
}
SCSS
$custom: #7b236f;
$custom-light: #a46698;
$custom-dark: #000000;
JSON
{
  "hex": "#7b236f",
  "rgb": {
    "r": 123,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 308.182,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42311,
    "c": 0.15038,
    "h": 333.9
  },
  "luminance": 0.06561
}

Semantic roles & 50–950 ramp

primary
#7B236F
secondary
#4CAE59
accent
#DF5D49
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B236F

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

Preview Lab → · Contrast checker → · Palette generator →

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