#7B188E#7B188E

#7B188E is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.3% C 0.188 H 320.3°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#7B188E
RGBrgb(123, 24, 142)
HSLhsl(290, 71%, 33%)
HSVhsv(290, 83%, 56%)
CMYKcmyk(13.4%, 83.1%, 0%, 44.3%)
CIE-LABlab(31.39, 55.82, -42.69)
CIE-LCHlch(31.39, 70.27, 322.59°)
OKLaboklab(43.35% 0.1445 -0.1199)
OKLCHoklch(43.35% 0.188 320.3)
XYZxyz(13.3769, 6.8179, 26.1973)
Luminance0.0682 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B188E #2B8E18
analogous
#40188E #7B188E #8E1866
triadic
#7B188E #8E7B18 #188E7B
tetradic
#7B188E #8E4018 #2B8E18 #18668E
square
#7B188E #8E4018 #2B8E18 #18668E
split-complementary
#7B188E #668E18 #188E40
monochromatic
#200625 #4E0F5A #7B188E #A821C2 #C641DF

Accessibility & contrast

On white

8.89
#7B188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B188E
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B188E#FFFFFF#000000##FFFFFF
##7B188E1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#264D8B
Tritanopia (blue-blind)
#7B3354
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b188e;
/* rgb */ color: rgb(123, 24, 142);
/* oklch */ color: oklch(43.3% 0.188 320.3);
Tailwind
colors: {
  custom: {
    50: '#a563b0',
    500: '#7b188e',
    950: '#000000',
  },
}
SCSS
$custom: #7b188e;
$custom-light: #a563b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b188e",
  "rgb": {
    "r": 123,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 290.339,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43347,
    "c": 0.18775,
    "h": 320.3
  },
  "luminance": 0.06817
}

Semantic roles & 50–950 ramp

primary
#7B188E
secondary
#56C042
accent
#EE3A57
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B188E

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

Preview Lab → · Contrast checker → · Palette generator →

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