#7B337F#7B337F

#7B337F is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.1% C 0.141 H 325.5°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#7B337F
RGBrgb(123, 51, 127)
HSLhsl(297, 43%, 35%)
HSVhsv(297, 60%, 50%)
CMYKcmyk(3.1%, 59.8%, 0%, 50.2%)
CIE-LABlab(34.21, 42.38, -28.88)
CIE-LCHlch(34.21, 51.28, 325.73°)
OKLaboklab(45.08% 0.1162 -0.0798)
OKLCHoklch(45.08% 0.141 325.5)
XYZxyz(13.1827, 8.1117, 20.9459)
Luminance0.0811 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B337F #377F33
analogous
#55337F #7B337F #7F335D
triadic
#7B337F #7F7B33 #337F7B
tetradic
#7B337F #7F5533 #377F33 #335D7F
square
#7B337F #7F5533 #377F33 #335D7F
split-complementary
#7B337F #5D7F33 #337F55
monochromatic
#261028 #512153 #7B337F #A545AB #BE69C3

Accessibility & contrast

On white

8.01
#7B337F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7B337F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B337F
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B337F#FFFFFF#000000##FFFFFF
##7B337F1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284B81
Deuteranopia (green-blind)
#41547D
Tritanopia (blue-blind)
#7E3D54
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7b337f;
/* rgb */ color: rgb(123, 51, 127);
/* oklch */ color: oklch(45.1% 0.141 325.5);
Tailwind
colors: {
  custom: {
    50: '#a36fa4',
    500: '#7b337f',
    950: '#000000',
  },
}
SCSS
$custom: #7b337f;
$custom-light: #a36fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b337f",
  "rgb": {
    "r": 123,
    "g": 51,
    "b": 127
  },
  "hsl": {
    "h": 296.842,
    "s": 42.697,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45078,
    "c": 0.14097,
    "h": 325.5
  },
  "luminance": 0.08111
}

Semantic roles & 50–950 ramp

primary
#7B337F
secondary
#67AB63
accent
#D2555C
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F080F
muted
#7F7B7F

Preview Lab

Preview with #7B337F

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

Preview Lab → · Contrast checker → · Palette generator →

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