#7A38B7#7A38B7

#7A38B7 is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.3% C 0.191 H 303.9°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#7A38B7
RGBrgb(122, 56, 183)
HSLhsl(271, 53%, 47%)
HSVhsv(271, 69%, 72%)
CMYKcmyk(33.3%, 69.4%, 0%, 28.2%)
CIE-LABlab(38.52, 52.04, -55.90)
CIE-LCHlch(38.52, 76.37, 312.95°)
OKLaboklab(49.3% 0.1068 -0.1589)
OKLCHoklch(49.3% 0.191 303.9)
XYZxyz(17.9855, 10.3849, 45.8475)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A38B7 #75B738
analogous
#3B38B7 #7A38B7 #B738B5
triadic
#7A38B7 #B77A38 #38B77A
tetradic
#7A38B7 #B73B38 #75B738 #38B5B7
square
#7A38B7 #B73B38 #75B738 #38B5B7
split-complementary
#7A38B7 #B5B738 #38B73B
monochromatic
#3C1B59 #5B2A88 #7A38B7 #985ECE #B68DDC

Accessibility & contrast

On white

6.82
#7A38B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#7A38B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A38B7
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A38B7#FFFFFF#000000##FFFFFF
##7A38B71.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BB
Deuteranopia (green-blind)
#005BB4
Tritanopia (blue-blind)
#6E5573
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7a38b7;
/* rgb */ color: rgb(122, 56, 183);
/* oklch */ color: oklch(49.3% 0.191 303.9);
Tailwind
colors: {
  custom: {
    50: '#a574cd',
    500: '#7a38b7',
    950: '#000000',
  },
}
SCSS
$custom: #7a38b7;
$custom-light: #a574cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a38b7",
  "rgb": {
    "r": 122,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 271.181,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49302,
    "c": 0.19148,
    "h": 303.9
  },
  "luminance": 0.10385
}

Semantic roles & 50–950 ramp

primary
#7A38B7
secondary
#A4C784
accent
#DD4B91
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A38B7

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

Preview Lab → · Contrast checker → · Palette generator →

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