#7B408D#7B408D

#7B408D is a mid, vivid purple. Relative luminance 0.098; OKLCH L 47.7% C 0.134 H 317.8°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#7B408D
RGBrgb(123, 64, 141)
HSLhsl(286, 38%, 40%)
HSVhsv(286, 55%, 55%)
CMYKcmyk(12.8%, 54.6%, 0%, 44.7%)
CIE-LABlab(37.48, 38.52, -32.35)
CIE-LCHlch(37.48, 50.30, 319.97°)
OKLaboklab(47.72% 0.0992 -0.09)
OKLCHoklch(47.72% 0.134 317.8)
XYZxyz(14.8088, 9.8014, 26.3059)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B408D #528D40
analogous
#54408D #7B408D #8D4078
triadic
#7B408D #8D7B40 #408D7B
tetradic
#7B408D #8D5440 #528D40 #40788D
square
#7B408D #8D5440 #528D40 #40788D
split-complementary
#7B408D #788D40 #408D54
monochromatic
#321A39 #562D63 #7B408D #9D57B3 #B681C6

Accessibility & contrast

On white

7.09
#7B408D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7B408D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B408D
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B408D#FFFFFF#000000##FFFFFF
##7B408D1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305490
Deuteranopia (green-blind)
#435A8B
Tritanopia (blue-blind)
#7B4C60
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7b408d;
/* rgb */ color: rgb(123, 64, 141);
/* oklch */ color: oklch(47.7% 0.134 317.8);
Tailwind
colors: {
  custom: {
    50: '#a377af',
    500: '#7b408d',
    950: '#000000',
  },
}
SCSS
$custom: #7b408d;
$custom-light: #a377af;
$custom-dark: #000000;
JSON
{
  "hex": "#7b408d",
  "rgb": {
    "r": 123,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 285.974,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47721,
    "c": 0.13394,
    "h": 317.8
  },
  "luminance": 0.09801
}

Semantic roles & 50–950 ramp

primary
#7B408D
secondary
#85B078
accent
#CE5A75
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#0F0910
muted
#7F7B7F

Preview Lab

Preview with #7B408D

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

Preview Lab → · Contrast checker → · Palette generator →

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