#7B38C4#7B38C4

#7B38C4 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.4% C 0.206 H 301.1°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#7B38C4
RGBrgb(123, 56, 196)
HSLhsl(269, 56%, 49%)
HSVhsv(269, 71%, 77%)
CMYKcmyk(37.2%, 71.4%, 0%, 23.1%)
CIE-LABlab(39.62, 55.37, -61.73)
CIE-LCHlch(39.62, 82.93, 311.89°)
OKLaboklab(50.42% 0.1061 -0.176)
OKLCHoklch(50.42% 0.206 301.1)
XYZxyz(19.5439, 11.0247, 53.3122)
Luminance0.1103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B38C4 #81C438
analogous
#383BC4 #7B38C4 #C138C4
triadic
#7B38C4 #C47B38 #38C47B
tetradic
#7B38C4 #C4383B #81C438 #38C4C1
square
#7B38C4 #C4383B #81C438 #38C4C1
split-complementary
#7B38C4 #C4C138 #3BC438
monochromatic
#3F1D65 #5D2A94 #7B38C4 #9A66D3 #BA96E1

Accessibility & contrast

On white

6.55
#7B38C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#7B38C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B38C4
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B38C4#FFFFFF#000000##FFFFFF
##7B38C41.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC8
Deuteranopia (green-blind)
#005DC1
Tritanopia (blue-blind)
#6B5A7A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7b38c4;
/* rgb */ color: rgb(123, 56, 196);
/* oklch */ color: oklch(50.4% 0.206 301.1);
Tailwind
colors: {
  custom: {
    50: '#a774d7',
    500: '#7b38c4',
    950: '#000000',
  },
}
SCSS
$custom: #7b38c4;
$custom-light: #a774d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b38c4",
  "rgb": {
    "r": 123,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 268.714,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.50415,
    "c": 0.20553,
    "h": 301.1
  },
  "luminance": 0.11025
}

Semantic roles & 50–950 ramp

primary
#7B38C4
secondary
#ADCC8C
accent
#DF4997
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7B38C4

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

Preview Lab → · Contrast checker → · Palette generator →

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