#7D38B4#7D38B4

#7D38B4 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.4% C 0.189 H 306.1°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#7D38B4
RGBrgb(125, 56, 180)
HSLhsl(273, 53%, 46%)
HSVhsv(273, 69%, 71%)
CMYKcmyk(30.6%, 68.9%, 0%, 29.4%)
CIE-LABlab(38.70, 51.94, -53.83)
CIE-LCHlch(38.70, 74.80, 313.98°)
OKLaboklab(49.44% 0.1113 -0.1527)
OKLCHoklch(49.44% 0.189 306.1)
XYZxyz(18.1080, 10.4838, 44.2408)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D38B4 #6FB438
analogous
#3F38B4 #7D38B4 #B438AD
triadic
#7D38B4 #B47D38 #38B47D
tetradic
#7D38B4 #B43F38 #6FB438 #38ADB4
square
#7D38B4 #B43F38 #6FB438 #38ADB4
split-complementary
#7D38B4 #ADB438 #38B43F
monochromatic
#3C1B57 #5D2985 #7D38B4 #9B5DCD #B88BDB

Accessibility & contrast

On white

6.78
#7D38B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7D38B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D38B4
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D38B4#FFFFFF#000000##FFFFFF
##7D38B41.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B8
Deuteranopia (green-blind)
#105BB1
Tritanopia (blue-blind)
#735472
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7d38b4;
/* rgb */ color: rgb(125, 56, 180);
/* oklch */ color: oklch(49.4% 0.189 306.1);
Tailwind
colors: {
  custom: {
    50: '#a774cb',
    500: '#7d38b4',
    950: '#000000',
  },
}
SCSS
$custom: #7d38b4;
$custom-light: #a774cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d38b4",
  "rgb": {
    "r": 125,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 273.387,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49441,
    "c": 0.18899,
    "h": 306.1
  },
  "luminance": 0.10484
}

Semantic roles & 50–950 ramp

primary
#7D38B4
secondary
#A0C582
accent
#DC4C8C
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7D38B4

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

Preview Lab → · Contrast checker → · Palette generator →

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