#7B237F#7B237F

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

Color values

HEX#7B237F
RGBrgb(123, 35, 127)
HSLhsl(297, 57%, 32%)
HSVhsv(297, 72%, 50%)
CMYKcmyk(3.1%, 72.4%, 0%, 50.2%)
CIE-LABlab(31.68, 49.41, -32.88)
CIE-LCHlch(31.68, 59.35, 326.36°)
OKLaboklab(43.25% 0.1358 -0.0913)
OKLCHoklch(43.25% 0.164 326.1)
XYZxyz(12.5999, 6.9462, 20.7517)
Luminance0.0694 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B237F #277F23
analogous
#4D237F #7B237F #7F2355
triadic
#7B237F #7F7B23 #237F7B
tetradic
#7B237F #7F4D23 #277F23 #23557F
square
#7B237F #7F4D23 #277F23 #23557F
split-complementary
#7B237F #557F23 #237F4D
monochromatic
#1E091F #4D164F #7B237F #A930AF #C94ECE

Accessibility & contrast

On white

8.79
#7B237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7B237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B237F
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B237F#FFFFFF#000000##FFFFFF
##7B237F1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4382
Deuteranopia (green-blind)
#374E7D
Tritanopia (blue-blind)
#7E324E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7b237f;
/* rgb */ color: rgb(123, 35, 127);
/* oklch */ color: oklch(43.2% 0.164 326.1);
Tailwind
colors: {
  custom: {
    50: '#a467a4',
    500: '#7b237f',
    950: '#000000',
  },
}
SCSS
$custom: #7b237f;
$custom-light: #a467a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b237f",
  "rgb": {
    "r": 123,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 297.391,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43247,
    "c": 0.16365,
    "h": 326.1
  },
  "luminance": 0.06945
}

Semantic roles & 50–950 ramp

primary
#7B237F
secondary
#51B14C
accent
#E0484E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B237F

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

Preview Lab → · Contrast checker → · Palette generator →

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