#7B38BA#7B38BA

#7B38BA is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.6% C 0.195 H 303.6°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#7B38BA
RGBrgb(123, 56, 186)
HSLhsl(271, 54%, 47%)
HSVhsv(271, 70%, 73%)
CMYKcmyk(33.9%, 69.9%, 0%, 27.1%)
CIE-LABlab(38.87, 52.95, -57.10)
CIE-LCHlch(38.87, 77.87, 312.85°)
OKLaboklab(49.65% 0.1078 -0.1624)
OKLCHoklch(49.65% 0.195 303.6)
XYZxyz(18.4434, 10.5845, 47.5162)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B38BA #77BA38
analogous
#3A38BA #7B38BA #BA38B8
triadic
#7B38BA #BA7B38 #38BA7B
tetradic
#7B38BA #BA3A38 #77BA38 #38B8BA
square
#7B38BA #BA3A38 #77BA38 #38B8BA
split-complementary
#7B38BA #B8BA38 #38BA3A
monochromatic
#3D1C5C #5C2A8B #7B38BA #9960CF #B78FDD

Accessibility & contrast

On white

6.74
#7B38BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7B38BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B38BA
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B38BA#FFFFFF#000000##FFFFFF
##7B38BA1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#005BB7
Tritanopia (blue-blind)
#6F5675
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7b38ba;
/* rgb */ color: rgb(123, 56, 186);
/* oklch */ color: oklch(49.6% 0.195 303.6);
Tailwind
colors: {
  custom: {
    50: '#a674d0',
    500: '#7b38ba',
    950: '#000000',
  },
}
SCSS
$custom: #7b38ba;
$custom-light: #a674d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b38ba",
  "rgb": {
    "r": 123,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 270.923,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49646,
    "c": 0.1949,
    "h": 303.6
  },
  "luminance": 0.10584
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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