#7D38B5#7D38B5

#7D38B5 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.5% C 0.190 H 305.8°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#7D38B5
RGBrgb(125, 56, 181)
HSLhsl(273, 53%, 46%)
HSVhsv(273, 69%, 71%)
CMYKcmyk(30.9%, 69.1%, 0%, 29%)
CIE-LABlab(38.77, 52.18, -54.30)
CIE-LCHlch(38.77, 75.31, 313.86°)
OKLaboklab(49.51% 0.1112 -0.1541)
OKLCHoklch(49.51% 0.19 305.8)
XYZxyz(18.2103, 10.5247, 44.7792)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D38B5 #70B538
analogous
#3F38B5 #7D38B5 #B538AF
triadic
#7D38B5 #B57D38 #38B57D
tetradic
#7D38B5 #B53F38 #70B538 #38AFB5
square
#7D38B5 #B53F38 #70B538 #38AFB5
split-complementary
#7D38B5 #AFB538 #38B53F
monochromatic
#3C1B58 #5D2A86 #7D38B5 #9B5DCD #B88CDB

Accessibility & contrast

On white

6.76
#7D38B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7D38B5
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D38B5#FFFFFF#000000##FFFFFF
##7D38B51.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B9
Deuteranopia (green-blind)
#0D5CB2
Tritanopia (blue-blind)
#735472
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7d38b5;
/* rgb */ color: rgb(125, 56, 181);
/* oklch */ color: oklch(49.5% 0.190 305.8);
Tailwind
colors: {
  custom: {
    50: '#a774cc',
    500: '#7d38b5',
    950: '#000000',
  },
}
SCSS
$custom: #7d38b5;
$custom-light: #a774cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7d38b5",
  "rgb": {
    "r": 125,
    "g": 56,
    "b": 181
  },
  "hsl": {
    "h": 273.12,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.49514,
    "c": 0.19005,
    "h": 305.8
  },
  "luminance": 0.10525
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D38B5

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

Preview Lab → · Contrast checker → · Palette generator →

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