#7B237B#7B237B

#7B237B is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.0% C 0.160 H 327.9°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#7B237B
RGBrgb(123, 35, 123)
HSLhsl(300, 56%, 31%)
HSVhsv(300, 72%, 48%)
CMYKcmyk(0%, 71.5%, 0%, 51.8%)
CIE-LABlab(31.45, 48.69, -30.74)
CIE-LCHlch(31.45, 57.58, 327.73°)
OKLaboklab(43% 0.1358 -0.0851)
OKLCHoklch(43% 0.16 327.9)
XYZxyz(12.3444, 6.8439, 19.4059)
Luminance0.0684 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B237B #237B23
analogous
#4F237B #7B237B #7B234F
triadic
#7B237B #7B7B23 #237B7B
tetradic
#7B237B #7B4F23 #237B23 #234F7B
square
#7B237B #7B4F23 #237B23 #234F7B
split-complementary
#7B237B #4F7B23 #237B4F
monochromatic
#1C081C #4B154B #7B237B #AB31AB #CC4CCC

Accessibility & contrast

On white

8.87
#7B237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7B237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B237B
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B237B#FFFFFF#000000##FFFFFF
##7B237B1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15437D
Deuteranopia (green-blind)
#3A4E79
Tritanopia (blue-blind)
#7F304C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b237b;
/* rgb */ color: rgb(123, 35, 123);
/* oklch */ color: oklch(43.0% 0.160 327.9);
Tailwind
colors: {
  custom: {
    50: '#a467a1',
    500: '#7b237b',
    950: '#000000',
  },
}
SCSS
$custom: #7b237b;
$custom-light: #a467a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b237b",
  "rgb": {
    "r": 123,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 300,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43002,
    "c": 0.16024,
    "h": 327.9
  },
  "luminance": 0.06843
}

Semantic roles & 50–950 ramp

primary
#7B237B
secondary
#4CAE4C
accent
#DF4949
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B237B

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

Preview Lab → · Contrast checker → · Palette generator →

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