#7B38B7#7B38B7

#7B38B7 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.4% C 0.192 H 304.4°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#7B38B7
RGBrgb(123, 56, 183)
HSLhsl(272, 53%, 47%)
HSVhsv(272, 69%, 72%)
CMYKcmyk(32.8%, 69.4%, 0%, 28.2%)
CIE-LABlab(38.65, 52.24, -55.68)
CIE-LCHlch(38.65, 76.35, 313.17°)
OKLaboklab(49.42% 0.1082 -0.1582)
OKLCHoklch(49.42% 0.192 304.4)
XYZxyz(18.1279, 10.4583, 45.8542)
Luminance0.1046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B38B7 #74B738
analogous
#3C38B7 #7B38B7 #B738B3
triadic
#7B38B7 #B77B38 #38B77B
tetradic
#7B38B7 #B73C38 #74B738 #38B3B7
square
#7B38B7 #B73C38 #74B738 #38B3B7
split-complementary
#7B38B7 #B3B738 #38B73C
monochromatic
#3C1B59 #5C2A88 #7B38B7 #995ECE #B78DDC

Accessibility & contrast

On white

6.79
#7B38B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7B38B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B38B7
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B38B7#FFFFFF#000000##FFFFFF
##7B38B71.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BB
Deuteranopia (green-blind)
#005BB4
Tritanopia (blue-blind)
#705573
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7b38b7;
/* rgb */ color: rgb(123, 56, 183);
/* oklch */ color: oklch(49.4% 0.192 304.4);
Tailwind
colors: {
  custom: {
    50: '#a674cd',
    500: '#7b38b7',
    950: '#000000',
  },
}
SCSS
$custom: #7b38b7;
$custom-light: #a674cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7b38b7",
  "rgb": {
    "r": 123,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 271.654,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49421,
    "c": 0.1917,
    "h": 304.4
  },
  "luminance": 0.10458
}

Semantic roles & 50–950 ramp

primary
#7B38B7
secondary
#A4C784
accent
#DD4B90
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7B38B7

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

Preview Lab → · Contrast checker → · Palette generator →

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