#7B236E#7B236E

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

Color values

HEX#7B236E
RGBrgb(123, 35, 110)
HSLhsl(309, 56%, 31%)
HSVhsv(309, 72%, 48%)
CMYKcmyk(0%, 71.5%, 10.6%, 51.8%)
CIE-LABlab(30.74, 46.45, -23.63)
CIE-LCHlch(30.74, 52.12, 333.04°)
OKLaboklab(42.26% 0.1349 -0.0646)
OKLCHoklch(42.26% 0.15 334.4)
XYZxyz(11.5840, 6.5398, 15.4010)
Luminance0.0654 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B236E #237B30
analogous
#5C237B #7B236E #7B2342
triadic
#7B236E #6E7B23 #236E7B
tetradic
#7B236E #7B5C23 #237B30 #23427B
square
#7B236E #7B5C23 #237B30 #23427B
split-complementary
#7B236E #427B23 #237B5C
monochromatic
#1C0819 #4B1543 #7B236E #AB3199 #CC4CB9

Accessibility & contrast

On white

9.10
#7B236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B236E
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B236E#FFFFFF#000000##FFFFFF
##7B236E1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224070
Deuteranopia (green-blind)
#404D6C
Tritanopia (blue-blind)
#812A45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b236e;
/* rgb */ color: rgb(123, 35, 110);
/* oklch */ color: oklch(42.3% 0.150 334.4);
Tailwind
colors: {
  custom: {
    50: '#a46698',
    500: '#7b236e',
    950: '#000000',
  },
}
SCSS
$custom: #7b236e;
$custom-light: #a46698;
$custom-dark: #000000;
JSON
{
  "hex": "#7b236e",
  "rgb": {
    "r": 123,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 308.864,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42256,
    "c": 0.1496,
    "h": 334.4
  },
  "luminance": 0.06539
}

Semantic roles & 50–950 ramp

primary
#7B236E
secondary
#4CAE5B
accent
#DF5F49
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7B236E

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

Preview Lab → · Contrast checker → · Palette generator →

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