#7D38B8#7D38B8

#7D38B8 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.7% C 0.193 H 305.0°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#7D38B8
RGBrgb(125, 56, 184)
HSLhsl(272, 53%, 47%)
HSVhsv(272, 70%, 72%)
CMYKcmyk(32.1%, 69.6%, 0%, 27.8%)
CIE-LABlab(38.98, 52.88, -55.73)
CIE-LCHlch(38.98, 76.82, 313.50°)
OKLaboklab(49.74% 0.1108 -0.1583)
OKLCHoklch(49.74% 0.193 305)
XYZxyz(18.5214, 10.6491, 46.4179)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D38B8 #73B838
analogous
#3D38B8 #7D38B8 #B838B3
triadic
#7D38B8 #B87D38 #38B87D
tetradic
#7D38B8 #B83D38 #73B838 #38B3B8
square
#7D38B8 #B83D38 #73B838 #38B3B8
split-complementary
#7D38B8 #B3B838 #38B83D
monochromatic
#3D1B5A #5D2A89 #7D38B8 #9B5FCE #B88EDD

Accessibility & contrast

On white

6.71
#7D38B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7D38B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D38B8
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D38B8#FFFFFF#000000##FFFFFF
##7D38B81.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABC
Deuteranopia (green-blind)
#005CB5
Tritanopia (blue-blind)
#725574
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7d38b8;
/* rgb */ color: rgb(125, 56, 184);
/* oklch */ color: oklch(49.7% 0.193 305.0);
Tailwind
colors: {
  custom: {
    50: '#a774ce',
    500: '#7d38b8',
    950: '#000000',
  },
}
SCSS
$custom: #7d38b8;
$custom-light: #a774ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7d38b8",
  "rgb": {
    "r": 125,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 272.344,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49736,
    "c": 0.19322,
    "h": 305
  },
  "luminance": 0.10649
}

Semantic roles & 50–950 ramp

primary
#7D38B8
secondary
#A3C785
accent
#DD4B8E
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7D38B8

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

Preview Lab → · Contrast checker → · Palette generator →

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