#7A38BD#7A38BD

#7A38BD is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.8% C 0.198 H 302.4°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#7A38BD
RGBrgb(122, 56, 189)
HSLhsl(270, 54%, 48%)
HSVhsv(270, 70%, 74%)
CMYKcmyk(35.4%, 70.4%, 0%, 25.9%)
CIE-LABlab(38.97, 53.48, -58.71)
CIE-LCHlch(38.97, 79.42, 312.33°)
OKLaboklab(49.76% 0.1059 -0.1672)
OKLCHoklch(49.76% 0.198 302.4)
XYZxyz(18.6233, 10.6400, 49.2068)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A38BD #7BBD38
analogous
#3839BD #7A38BD #BC38BD
triadic
#7A38BD #BD7A38 #38BD7A
tetradic
#7A38BD #BD3839 #7BBD38 #38BDBC
square
#7A38BD #BD3839 #7BBD38 #38BDBC
split-complementary
#7A38BD #BDBC38 #39BD38
monochromatic
#3D1C5F #5C2A8E #7A38BD #9962D0 #B791DE

Accessibility & contrast

On white

6.71
#7A38BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7A38BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A38BD
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A38BD#FFFFFF#000000##FFFFFF
##7A38BD1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC1
Deuteranopia (green-blind)
#005BBA
Tritanopia (blue-blind)
#6C5877
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7a38bd;
/* rgb */ color: rgb(122, 56, 189);
/* oklch */ color: oklch(49.8% 0.198 302.4);
Tailwind
colors: {
  custom: {
    50: '#a674d2',
    500: '#7a38bd',
    950: '#000000',
  },
}
SCSS
$custom: #7a38bd;
$custom-light: #a674d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a38bd",
  "rgb": {
    "r": 122,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 269.774,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49757,
    "c": 0.1979,
    "h": 302.4
  },
  "luminance": 0.1064
}

Semantic roles & 50–950 ramp

primary
#7A38BD
secondary
#A9C987
accent
#DE4A94
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7A38BD

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

Preview Lab → · Contrast checker → · Palette generator →

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