#7A38AB#7A38AB

#7A38AB is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.4% C 0.179 H 307.3°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#7A38AB
RGBrgb(122, 56, 171)
HSLhsl(274, 51%, 45%)
HSVhsv(274, 67%, 67%)
CMYKcmyk(28.7%, 67.3%, 0%, 32.9%)
CIE-LABlab(37.67, 49.19, -50.16)
CIE-LCHlch(37.67, 70.25, 314.44°)
OKLaboklab(48.42% 0.1083 -0.142)
OKLCHoklch(48.42% 0.179 307.3)
XYZxyz(16.7894, 9.9064, 39.5478)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A38AB #69AB38
analogous
#4138AB #7A38AB #AB38A3
triadic
#7A38AB #AB7A38 #38AB7A
tetradic
#7A38AB #AB4138 #69AB38 #38A3AB
square
#7A38AB #AB4138 #69AB38 #38A3AB
split-complementary
#7A38AB #A3AB38 #38AB41
monochromatic
#381A4F #59297D #7A38AB #9858C8 #B586D7

Accessibility & contrast

On white

7.04
#7A38AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#7A38AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A38AB
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A38AB#FFFFFF#000000##FFFFFF
##7A38AB1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AE
Deuteranopia (green-blind)
#1E59A8
Tritanopia (blue-blind)
#72516D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7a38ab;
/* rgb */ color: rgb(122, 56, 171);
/* oklch */ color: oklch(48.4% 0.179 307.3);
Tailwind
colors: {
  custom: {
    50: '#a473c5',
    500: '#7a38ab',
    950: '#000000',
  },
}
SCSS
$custom: #7a38ab;
$custom-light: #a473c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a38ab",
  "rgb": {
    "r": 122,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 274.435,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48424,
    "c": 0.17859,
    "h": 307.3
  },
  "luminance": 0.09906
}

Semantic roles & 50–950 ramp

primary
#7A38AB
secondary
#9AC17D
accent
#DA4E8A
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A38AB

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

Preview Lab → · Contrast checker → · Palette generator →

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