#7B38BC#7B38BC

#7B38BC is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.8% C 0.197 H 303.0°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#7B38BC
RGBrgb(123, 56, 188)
HSLhsl(270, 54%, 48%)
HSVhsv(270, 70%, 74%)
CMYKcmyk(34.6%, 70.2%, 0%, 26.3%)
CIE-LABlab(39.02, 53.43, -58.03)
CIE-LCHlch(39.02, 78.89, 312.64°)
OKLaboklab(49.8% 0.1075 -0.1651)
OKLCHoklch(49.8% 0.197 303)
XYZxyz(18.6575, 10.6701, 48.6438)
Luminance0.1067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B38BC #79BC38
analogous
#3938BC #7B38BC #BC38BB
triadic
#7B38BC #BC7B38 #38BC7B
tetradic
#7B38BC #BC3938 #79BC38 #38BBBC
square
#7B38BC #BC3938 #79BC38 #38BBBC
split-complementary
#7B38BC #BBBC38 #38BC39
monochromatic
#3D1C5E #5C2A8D #7B38BC #9961D0 #B890DE

Accessibility & contrast

On white

6.70
#7B38BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7B38BC
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B38BC#FFFFFF#000000##FFFFFF
##7B38BC1.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC0
Deuteranopia (green-blind)
#005CB9
Tritanopia (blue-blind)
#6E5776
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7b38bc;
/* rgb */ color: rgb(123, 56, 188);
/* oklch */ color: oklch(49.8% 0.197 303.0);
Tailwind
colors: {
  custom: {
    50: '#a674d1',
    500: '#7b38bc',
    950: '#000000',
  },
}
SCSS
$custom: #7b38bc;
$custom-light: #a674d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b38bc",
  "rgb": {
    "r": 123,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 270.455,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49798,
    "c": 0.19703,
    "h": 303
  },
  "luminance": 0.1067
}

Semantic roles & 50–950 ramp

primary
#7B38BC
secondary
#A7C987
accent
#DD4A93
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7B38BC

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

Preview Lab → · Contrast checker → · Palette generator →

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