#7D38B6#7D38B6

#7D38B6 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.6% C 0.191 H 305.5°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#7D38B6
RGBrgb(125, 56, 182)
HSLhsl(273, 53%, 47%)
HSVhsv(273, 69%, 71%)
CMYKcmyk(31.3%, 69.2%, 0%, 28.6%)
CIE-LABlab(38.84, 52.41, -54.78)
CIE-LCHlch(38.84, 75.81, 313.73°)
OKLaboklab(49.59% 0.1111 -0.1555)
OKLCHoklch(49.59% 0.191 305.5)
XYZxyz(18.3133, 10.5659, 45.3215)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D38B6 #71B638
analogous
#3E38B6 #7D38B6 #B638B0
triadic
#7D38B6 #B67D38 #38B67D
tetradic
#7D38B6 #B63E38 #71B638 #38B0B6
square
#7D38B6 #B63E38 #71B638 #38B0B6
split-complementary
#7D38B6 #B0B638 #38B63E
monochromatic
#3D1B58 #5D2A87 #7D38B6 #9B5ECD #B88DDC

Accessibility & contrast

On white

6.75
#7D38B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#7D38B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D38B6
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D38B6#FFFFFF#000000##FFFFFF
##7D38B61.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BA
Deuteranopia (green-blind)
#095CB3
Tritanopia (blue-blind)
#735573
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7d38b6;
/* rgb */ color: rgb(125, 56, 182);
/* oklch */ color: oklch(49.6% 0.191 305.5);
Tailwind
colors: {
  custom: {
    50: '#a774cd',
    500: '#7d38b6',
    950: '#000000',
  },
}
SCSS
$custom: #7d38b6;
$custom-light: #a774cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7d38b6",
  "rgb": {
    "r": 125,
    "g": 56,
    "b": 182
  },
  "hsl": {
    "h": 272.857,
    "s": 52.941,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49588,
    "c": 0.19111,
    "h": 305.5
  },
  "luminance": 0.10566
}

Semantic roles & 50–950 ramp

primary
#7D38B6
secondary
#A2C684
accent
#DC4B8D
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7D38B6

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

Preview Lab → · Contrast checker → · Palette generator →

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