#7B38BD#7B38BD

#7B38BD is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.9% C 0.198 H 302.8°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#7B38BD
RGBrgb(123, 56, 189)
HSLhsl(270, 54%, 48%)
HSVhsv(270, 70%, 74%)
CMYKcmyk(34.9%, 70.4%, 0%, 25.9%)
CIE-LABlab(39.09, 53.67, -58.50)
CIE-LCHlch(39.09, 79.39, 312.54°)
OKLaboklab(49.87% 0.1073 -0.1665)
OKLCHoklch(49.87% 0.198 302.8)
XYZxyz(18.7657, 10.7134, 49.2135)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B38BD #7ABD38
analogous
#3938BD #7B38BD #BD38BC
triadic
#7B38BD #BD7B38 #38BD7B
tetradic
#7B38BD #BD3938 #7ABD38 #38BCBD
square
#7B38BD #BD3938 #7ABD38 #38BCBD
split-complementary
#7B38BD #BCBD38 #38BD39
monochromatic
#3E1C5F #5C2A8E #7B38BD #9A62D0 #B891DE

Accessibility & contrast

On white

6.68
#7B38BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#7B38BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B38BD
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B38BD#FFFFFF#000000##FFFFFF
##7B38BD1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC1
Deuteranopia (green-blind)
#005CBA
Tritanopia (blue-blind)
#6E5777
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7b38bd;
/* rgb */ color: rgb(123, 56, 189);
/* oklch */ color: oklch(49.9% 0.198 302.8);
Tailwind
colors: {
  custom: {
    50: '#a674d2',
    500: '#7b38bd',
    950: '#000000',
  },
}
SCSS
$custom: #7b38bd;
$custom-light: #a674d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b38bd",
  "rgb": {
    "r": 123,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 270.226,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49874,
    "c": 0.19809,
    "h": 302.8
  },
  "luminance": 0.10713
}

Semantic roles & 50–950 ramp

primary
#7B38BD
secondary
#A8C987
accent
#DE4A93
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7B38BD

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

Preview Lab → · Contrast checker → · Palette generator →

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