#7B38C3#7B38C3

#7B38C3 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.3% C 0.204 H 301.3°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#7B38C3
RGBrgb(123, 56, 195)
HSLhsl(269, 55%, 49%)
HSVhsv(269, 71%, 76%)
CMYKcmyk(36.9%, 71.3%, 0%, 23.5%)
CIE-LABlab(39.55, 55.12, -61.28)
CIE-LCHlch(39.55, 82.42, 311.98°)
OKLaboklab(50.34% 0.1063 -0.1747)
OKLCHoklch(50.34% 0.204 301.3)
XYZxyz(19.4305, 10.9793, 52.7147)
Luminance0.1098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B38C3 #80C338
analogous
#383BC3 #7B38C3 #C138C3
triadic
#7B38C3 #C37B38 #38C37B
tetradic
#7B38C3 #C3383B #80C338 #38C3C1
square
#7B38C3 #C3383B #80C338 #38C3C1
split-complementary
#7B38C3 #C3C138 #3BC338
monochromatic
#3F1D64 #5D2A93 #7B38C3 #9A65D3 #B995E1

Accessibility & contrast

On white

6.57
#7B38C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#7B38C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B38C3
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B38C3#FFFFFF#000000##FFFFFF
##7B38C31.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b38c3;
/* rgb */ color: rgb(123, 56, 195);
/* oklch */ color: oklch(50.3% 0.204 301.3);
Tailwind
colors: {
  custom: {
    50: '#a774d6',
    500: '#7b38c3',
    950: '#000000',
  },
}
SCSS
$custom: #7b38c3;
$custom-light: #a774d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b38c3",
  "rgb": {
    "r": 123,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 268.921,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.50337,
    "c": 0.20447,
    "h": 301.3
  },
  "luminance": 0.10979
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B38C3

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

Preview Lab → · Contrast checker → · Palette generator →

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