#7D39B2#7D39B2

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

Color values

HEX#7D39B2
RGBrgb(125, 57, 178)
HSLhsl(274, 51%, 46%)
HSVhsv(274, 68%, 70%)
CMYKcmyk(29.8%, 68%, 0%, 30.2%)
CIE-LABlab(38.73, 51.00, -52.60)
CIE-LCHlch(38.73, 73.26, 314.12°)
OKLaboklab(49.42% 0.1105 -0.1491)
OKLCHoklch(49.42% 0.186 306.5)
XYZxyz(17.9547, 10.5008, 43.1918)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D39B2 #6EB239
analogous
#4039B2 #7D39B2 #B239AA
triadic
#7D39B2 #B27D39 #39B27D
tetradic
#7D39B2 #B24039 #6EB239 #39AAB2
square
#7D39B2 #B24039 #6EB239 #39AAB2
split-complementary
#7D39B2 #AAB239 #39B240
monochromatic
#3C1B55 #5C2A84 #7D39B2 #9B5DCB #B88BDA

Accessibility & contrast

On white

6.77
#7D39B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7D39B2
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D39B2#FFFFFF#000000##FFFFFF
##7D39B21.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B6
Deuteranopia (green-blind)
#185CAF
Tritanopia (blue-blind)
#745471
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7d39b2;
/* rgb */ color: rgb(125, 57, 178);
/* oklch */ color: oklch(49.4% 0.186 306.5);
Tailwind
colors: {
  custom: {
    50: '#a774ca',
    500: '#7d39b2',
    950: '#000000',
  },
}
SCSS
$custom: #7d39b2;
$custom-light: #a774ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7d39b2",
  "rgb": {
    "r": 125,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 273.719,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49418,
    "c": 0.18557,
    "h": 306.5
  },
  "luminance": 0.10501
}

Semantic roles & 50–950 ramp

primary
#7D39B2
secondary
#9FC482
accent
#DB4D8B
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7D39B2

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

Preview Lab → · Contrast checker → · Palette generator →

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