#7D38C9#7D38C9

#7D38C9 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.0% C 0.211 H 300.7°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#7D38C9
RGBrgb(125, 56, 201)
HSLhsl(269, 57%, 50%)
HSVhsv(269, 72%, 79%)
CMYKcmyk(37.8%, 72.1%, 0%, 21.2%)
CIE-LABlab(40.25, 56.94, -63.60)
CIE-LCHlch(40.25, 85.37, 311.84°)
OKLaboklab(51.04% 0.1079 -0.1815)
OKLCHoklch(51.04% 0.211 300.7)
XYZxyz(20.4116, 11.4052, 56.3731)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D38C9 #84C938
analogous
#383BC9 #7D38C9 #C638C9
triadic
#7D38C9 #C97D38 #38C97D
tetradic
#7D38C9 #C9383B #84C938 #38C9C6
square
#7D38C9 #C9383B #84C938 #38C9C6
split-complementary
#7D38C9 #C9C638 #3BC938
monochromatic
#411D6A #5F2A9A #7D38C9 #9C68D6 #BC98E3

Accessibility & contrast

On white

6.40
#7D38C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#7D38C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D38C9
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D38C9#FFFFFF#000000##FFFFFF
##7D38C91.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECD
Deuteranopia (green-blind)
#005EC6
Tritanopia (blue-blind)
#6C5C7D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7d38c9;
/* rgb */ color: rgb(125, 56, 201);
/* oklch */ color: oklch(51.0% 0.211 300.7);
Tailwind
colors: {
  custom: {
    50: '#a975da',
    500: '#7d38c9',
    950: '#000000',
  },
}
SCSS
$custom: #7d38c9;
$custom-light: #a975da;
$custom-dark: #000000;
JSON
{
  "hex": "#7d38c9",
  "rgb": {
    "r": 125,
    "g": 56,
    "b": 201
  },
  "hsl": {
    "h": 268.552,
    "s": 57.312,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51039,
    "c": 0.21113,
    "h": 300.7
  },
  "luminance": 0.11405
}

Semantic roles & 50–950 ramp

primary
#7D38C9
secondary
#B0CF8E
accent
#E14798
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7D38C9

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

Preview Lab → · Contrast checker → · Palette generator →

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