#7A38BB#7A38BB

#7A38BB is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.6% C 0.196 H 302.9°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#7A38BB
RGBrgb(122, 56, 187)
HSLhsl(270, 54%, 48%)
HSVhsv(270, 70%, 73%)
CMYKcmyk(34.8%, 70.1%, 0%, 26.7%)
CIE-LABlab(38.82, 53.00, -57.78)
CIE-LCHlch(38.82, 78.40, 312.53°)
OKLaboklab(49.6% 0.1062 -0.1644)
OKLCHoklch(49.6% 0.196 302.9)
XYZxyz(18.4078, 10.5538, 48.0714)
Luminance0.1055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A38BB #79BB38
analogous
#3938BB #7A38BB #BB38BA
triadic
#7A38BB #BB7A38 #38BB7A
tetradic
#7A38BB #BB3938 #79BB38 #38BABB
square
#7A38BB #BB3938 #79BB38 #38BABB
split-complementary
#7A38BB #BABB38 #38BB39
monochromatic
#3D1C5D #5B2A8C #7A38BB #9961D0 #B790DE

Accessibility & contrast

On white

6.75
#7A38BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#7A38BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A38BB
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A38BB#FFFFFF#000000##FFFFFF
##7A38BB1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABF
Deuteranopia (green-blind)
#005BB8
Tritanopia (blue-blind)
#6D5775
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7a38bb;
/* rgb */ color: rgb(122, 56, 187);
/* oklch */ color: oklch(49.6% 0.196 302.9);
Tailwind
colors: {
  custom: {
    50: '#a674d0',
    500: '#7a38bb',
    950: '#000000',
  },
}
SCSS
$custom: #7a38bb;
$custom-light: #a674d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a38bb",
  "rgb": {
    "r": 122,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 270.229,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.49604,
    "c": 0.19575,
    "h": 302.9
  },
  "luminance": 0.10554
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7A38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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