#7B38C0#7B38C0

#7B38C0 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.1% C 0.201 H 302.0°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#7B38C0
RGBrgb(123, 56, 192)
HSLhsl(270, 55%, 49%)
HSVhsv(270, 71%, 75%)
CMYKcmyk(35.9%, 70.8%, 0%, 24.7%)
CIE-LABlab(39.32, 54.40, -59.89)
CIE-LCHlch(39.32, 80.91, 312.25°)
OKLaboklab(50.11% 0.1068 -0.1706)
OKLCHoklch(50.11% 0.201 302)
XYZxyz(19.0947, 10.8450, 50.9463)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B38C0 #7DC038
analogous
#3839C0 #7B38C0 #BF38C0
triadic
#7B38C0 #C07B38 #38C07B
tetradic
#7B38C0 #C03839 #7DC038 #38C0BF
square
#7B38C0 #C03839 #7DC038 #38C0BF
split-complementary
#7B38C0 #C0BF38 #39C038
monochromatic
#3E1C61 #5D2A91 #7B38C0 #9A64D2 #B993DF

Accessibility & contrast

On white

6.63
#7B38C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#7B38C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B38C0
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B38C0#FFFFFF#000000##FFFFFF
##7B38C01.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC4
Deuteranopia (green-blind)
#005CBD
Tritanopia (blue-blind)
#6C5978
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7b38c0;
/* rgb */ color: rgb(123, 56, 192);
/* oklch */ color: oklch(50.1% 0.201 302.0);
Tailwind
colors: {
  custom: {
    50: '#a774d4',
    500: '#7b38c0',
    950: '#000000',
  },
}
SCSS
$custom: #7b38c0;
$custom-light: #a774d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b38c0",
  "rgb": {
    "r": 123,
    "g": 56,
    "b": 192
  },
  "hsl": {
    "h": 269.559,
    "s": 54.839,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50105,
    "c": 0.20128,
    "h": 302
  },
  "luminance": 0.10845
}

Semantic roles & 50–950 ramp

primary
#7B38C0
secondary
#AACB89
accent
#DE4A95
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7B38C0

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

Preview Lab → · Contrast checker → · Palette generator →

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