#7B38C6#7B38C6

#7B38C6 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.6% C 0.208 H 300.6°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#7B38C6
RGBrgb(123, 56, 198)
HSLhsl(268, 56%, 50%)
HSVhsv(268, 72%, 78%)
CMYKcmyk(37.9%, 71.7%, 0%, 22.4%)
CIE-LABlab(39.78, 55.85, -62.65)
CIE-LCHlch(39.78, 83.93, 311.72°)
OKLaboklab(50.57% 0.1057 -0.1787)
OKLCHoklch(50.57% 0.208 300.6)
XYZxyz(19.7731, 11.1164, 54.5191)
Luminance0.1112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B38C6 #83C638
analogous
#383CC6 #7B38C6 #C238C6
triadic
#7B38C6 #C67B38 #38C67B
tetradic
#7B38C6 #C6383C #83C638 #38C6C2
square
#7B38C6 #C6383C #83C638 #38C6C2
split-complementary
#7B38C6 #C6C238 #3CC638
monochromatic
#401D67 #5D2B96 #7B38C6 #9B67D4 #BA97E2

Accessibility & contrast

On white

6.51
#7B38C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#7B38C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B38C6
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B38C6#FFFFFF#000000##FFFFFF
##7B38C61.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCA
Deuteranopia (green-blind)
#005DC3
Tritanopia (blue-blind)
#6A5B7C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7b38c6;
/* rgb */ color: rgb(123, 56, 198);
/* oklch */ color: oklch(50.6% 0.208 300.6);
Tailwind
colors: {
  custom: {
    50: '#a774d8',
    500: '#7b38c6',
    950: '#000000',
  },
}
SCSS
$custom: #7b38c6;
$custom-light: #a774d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b38c6",
  "rgb": {
    "r": 123,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 268.31,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50573,
    "c": 0.20765,
    "h": 300.6
  },
  "luminance": 0.11117
}

Semantic roles & 50–950 ramp

primary
#7B38C6
secondary
#AFCD8D
accent
#DF4998
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7B38C6

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

Preview Lab → · Contrast checker → · Palette generator →

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