#7B38BF#7B38BF

#7B38BF is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.0% C 0.200 H 302.3°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#7B38BF
RGBrgb(123, 56, 191)
HSLhsl(270, 55%, 48%)
HSVhsv(270, 71%, 75%)
CMYKcmyk(35.6%, 70.7%, 0%, 25.1%)
CIE-LABlab(39.24, 54.16, -59.43)
CIE-LCHlch(39.24, 80.40, 312.34°)
OKLaboklab(50.03% 0.107 -0.1693)
OKLCHoklch(50.03% 0.2 302.3)
XYZxyz(18.9843, 10.8008, 50.3647)
Luminance0.1080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B38BF #7CBF38
analogous
#3838BF #7B38BF #BE38BF
triadic
#7B38BF #BF7B38 #38BF7B
tetradic
#7B38BF #BF3838 #7CBF38 #38BFBE
square
#7B38BF #BF3838 #7CBF38 #38BFBE
split-complementary
#7B38BF #BFBE38 #38BF38
monochromatic
#3E1C60 #5D2A90 #7B38BF #9A63D1 #B892DF

Accessibility & contrast

On white

6.65
#7B38BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7B38BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B38BF
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B38BF#FFFFFF#000000##FFFFFF
##7B38BF1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC3
Deuteranopia (green-blind)
#005CBC
Tritanopia (blue-blind)
#6D5878
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7b38bf;
/* rgb */ color: rgb(123, 56, 191);
/* oklch */ color: oklch(50.0% 0.200 302.3);
Tailwind
colors: {
  custom: {
    50: '#a774d3',
    500: '#7b38bf',
    950: '#000000',
  },
}
SCSS
$custom: #7b38bf;
$custom-light: #a774d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b38bf",
  "rgb": {
    "r": 123,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 269.778,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50027,
    "c": 0.20022,
    "h": 302.3
  },
  "luminance": 0.10801
}

Semantic roles & 50–950 ramp

primary
#7B38BF
secondary
#AACA89
accent
#DE4A94
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7B38BF

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

Preview Lab → · Contrast checker → · Palette generator →

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