#7B38B8#7B38B8

#7B38B8 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.5% C 0.193 H 304.1°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#7B38B8
RGBrgb(123, 56, 184)
HSLhsl(271, 53%, 47%)
HSVhsv(271, 70%, 72%)
CMYKcmyk(33.2%, 69.6%, 0%, 27.8%)
CIE-LABlab(38.73, 52.48, -56.16)
CIE-LCHlch(38.73, 76.86, 313.06°)
OKLaboklab(49.5% 0.1081 -0.1596)
OKLCHoklch(49.5% 0.193 304.1)
XYZxyz(18.2323, 10.5000, 46.4043)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B38B8 #75B838
analogous
#3B38B8 #7B38B8 #B838B5
triadic
#7B38B8 #B87B38 #38B87B
tetradic
#7B38B8 #B83B38 #75B838 #38B5B8
square
#7B38B8 #B83B38 #75B838 #38B5B8
split-complementary
#7B38B8 #B5B838 #38B83B
monochromatic
#3C1B5A #5C2A89 #7B38B8 #995FCE #B78EDD

Accessibility & contrast

On white

6.77
#7B38B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7B38B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B38B8
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B38B8#FFFFFF#000000##FFFFFF
##7B38B81.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABC
Deuteranopia (green-blind)
#005BB5
Tritanopia (blue-blind)
#6F5674
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7b38b8;
/* rgb */ color: rgb(123, 56, 184);
/* oklch */ color: oklch(49.5% 0.193 304.1);
Tailwind
colors: {
  custom: {
    50: '#a674ce',
    500: '#7b38b8',
    950: '#000000',
  },
}
SCSS
$custom: #7b38b8;
$custom-light: #a674ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7b38b8",
  "rgb": {
    "r": 123,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 271.406,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49496,
    "c": 0.19276,
    "h": 304.1
  },
  "luminance": 0.105
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B38B8

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

Preview Lab → · Contrast checker → · Palette generator →

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