#7B3388#7B3388

#7B3388 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.6% C 0.150 H 321.3°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#7B3388
RGBrgb(123, 51, 136)
HSLhsl(291, 45%, 37%)
HSVhsv(291, 63%, 53%)
CMYKcmyk(9.6%, 62.5%, 0%, 46.7%)
CIE-LABlab(34.72, 44.17, -33.66)
CIE-LCHlch(34.72, 55.53, 322.68°)
OKLaboklab(45.61% 0.1168 -0.0937)
OKLCHoklch(45.61% 0.15 321.3)
XYZxyz(13.7956, 8.3569, 24.1741)
Luminance0.0836 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B3388 #408833
analogous
#513388 #7B3388 #88336B
triadic
#7B3388 #887B33 #33887B
tetradic
#7B3388 #885133 #408833 #336B88
square
#7B3388 #885133 #408833 #336B88
split-complementary
#7B3388 #6B8833 #338851
monochromatic
#2A122F #53225B #7B3388 #A344B5 #BA6DC8

Accessibility & contrast

On white

7.86
#7B3388 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7B3388 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B3388
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B3388#FFFFFF#000000##FFFFFF
##7B33881.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204C8B
Deuteranopia (green-blind)
#3C5486
Tritanopia (blue-blind)
#7C4058
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b3388;
/* rgb */ color: rgb(123, 51, 136);
/* oklch */ color: oklch(45.6% 0.150 321.3);
Tailwind
colors: {
  custom: {
    50: '#a46fab',
    500: '#7b3388',
    950: '#000000',
  },
}
SCSS
$custom: #7b3388;
$custom-light: #a46fab;
$custom-dark: #000000;
JSON
{
  "hex": "#7b3388",
  "rgb": {
    "r": 123,
    "g": 51,
    "b": 136
  },
  "hsl": {
    "h": 290.824,
    "s": 45.455,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45605,
    "c": 0.14975,
    "h": 321.3
  },
  "luminance": 0.08356
}

Semantic roles & 50–950 ramp

primary
#7B3388
secondary
#72B067
accent
#D55367
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0810
muted
#7F7B7F

Preview Lab

Preview with #7B3388

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

Preview Lab → · Contrast checker → · Palette generator →

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