#7B38BB#7B38BB

#7B38BB is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.7% C 0.196 H 303.3°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#7B38BB
RGBrgb(123, 56, 187)
HSLhsl(271, 54%, 48%)
HSVhsv(271, 70%, 73%)
CMYKcmyk(34.2%, 70.1%, 0%, 26.7%)
CIE-LABlab(38.95, 53.19, -57.56)
CIE-LCHlch(38.95, 78.38, 312.74°)
OKLaboklab(49.72% 0.1076 -0.1638)
OKLCHoklch(49.72% 0.196 303.3)
XYZxyz(18.5501, 10.6272, 48.0781)
Luminance0.1063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B38BB #78BB38
analogous
#3A38BB #7B38BB #BB38B9
triadic
#7B38BB #BB7B38 #38BB7B
tetradic
#7B38BB #BB3A38 #78BB38 #38B9BB
square
#7B38BB #BB3A38 #78BB38 #38B9BB
split-complementary
#7B38BB #B9BB38 #38BB3A
monochromatic
#3D1C5D #5C2A8C #7B38BB #9961D0 #B890DE

Accessibility & contrast

On white

6.72
#7B38BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7B38BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B38BB
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B38BB#FFFFFF#000000##FFFFFF
##7B38BB1.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABF
Deuteranopia (green-blind)
#005BB8
Tritanopia (blue-blind)
#6E5775
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7b38bb;
/* rgb */ color: rgb(123, 56, 187);
/* oklch */ color: oklch(49.7% 0.196 303.3);
Tailwind
colors: {
  custom: {
    50: '#a674d0',
    500: '#7b38bb',
    950: '#000000',
  },
}
SCSS
$custom: #7b38bb;
$custom-light: #a674d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b38bb",
  "rgb": {
    "r": 123,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 270.687,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.49722,
    "c": 0.19596,
    "h": 303.3
  },
  "luminance": 0.10627
}

Semantic roles & 50–950 ramp

primary
#7B38BB
secondary
#A7C886
accent
#DD4B92
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7B38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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