#7A38BA#7A38BA

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

Color values

HEX#7A38BA
RGBrgb(122, 56, 186)
HSLhsl(270, 54%, 47%)
HSVhsv(270, 70%, 73%)
CMYKcmyk(34.4%, 69.9%, 0%, 27.1%)
CIE-LABlab(38.74, 52.76, -57.31)
CIE-LCHlch(38.74, 77.89, 312.63°)
OKLaboklab(49.53% 0.1064 -0.1631)
OKLCHoklch(49.53% 0.195 303.1)
XYZxyz(18.3011, 10.5111, 47.5095)
Luminance0.1051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A38BA #78BA38
analogous
#3938BA #7A38BA #BA38B9
triadic
#7A38BA #BA7A38 #38BA7A
tetradic
#7A38BA #BA3938 #78BA38 #38B9BA
square
#7A38BA #BA3938 #78BA38 #38B9BA
split-complementary
#7A38BA #B9BA38 #38BA39
monochromatic
#3C1C5C #5B2A8B #7A38BA #9860CF #B78FDD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A38BA#FFFFFF#000000##FFFFFF
##7A38BA1.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)
#005ABE
Deuteranopia (green-blind)
#005BB7
Tritanopia (blue-blind)
#6D5675
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7a38ba;
/* rgb */ color: rgb(122, 56, 186);
/* oklch */ color: oklch(49.5% 0.195 303.1);
Tailwind
colors: {
  custom: {
    50: '#a674d0',
    500: '#7a38ba',
    950: '#000000',
  },
}
SCSS
$custom: #7a38ba;
$custom-light: #a674d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a38ba",
  "rgb": {
    "r": 122,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 270.462,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49528,
    "c": 0.19469,
    "h": 303.1
  },
  "luminance": 0.10511
}

Semantic roles & 50–950 ramp

primary
#7A38BA
secondary
#A6C886
accent
#DD4B93
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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