#7B237A#7B237A

#7B237A is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.9% C 0.159 H 328.4°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#7B237A
RGBrgb(123, 35, 122)
HSLhsl(301, 56%, 31%)
HSVhsv(301, 72%, 48%)
CMYKcmyk(0%, 71.5%, 0.8%, 51.8%)
CIE-LABlab(31.39, 48.51, -30.21)
CIE-LCHlch(31.39, 57.15, 328.09°)
OKLaboklab(42.94% 0.1358 -0.0835)
OKLCHoklch(42.94% 0.159 328.4)
XYZxyz(12.2821, 6.8190, 19.0779)
Luminance0.0682 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B237A #237B24
analogous
#50237B #7B237A #7B234E
triadic
#7B237A #7A7B23 #237A7B
tetradic
#7B237A #7B5023 #237B24 #234E7B
square
#7B237A #7B5023 #237B24 #234E7B
split-complementary
#7B237A #4E7B23 #237B50
monochromatic
#1C081B #4B154B #7B237A #AB31A9 #CC4CCB

Accessibility & contrast

On white

8.88
#7B237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7B237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B237A
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B237A#FFFFFF#000000##FFFFFF
##7B237A1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16427C
Deuteranopia (green-blind)
#3A4E78
Tritanopia (blue-blind)
#7F2F4C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b237a;
/* rgb */ color: rgb(123, 35, 122);
/* oklch */ color: oklch(42.9% 0.159 328.4);
Tailwind
colors: {
  custom: {
    50: '#a467a1',
    500: '#7b237a',
    950: '#000000',
  },
}
SCSS
$custom: #7b237a;
$custom-light: #a467a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b237a",
  "rgb": {
    "r": 123,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 300.682,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42942,
    "c": 0.15939,
    "h": 328.4
  },
  "luminance": 0.06818
}

Semantic roles & 50–950 ramp

primary
#7B237A
secondary
#4CAE4D
accent
#DF4B49
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7B237A

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

Preview Lab → · Contrast checker → · Palette generator →

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