#7A38BC#7A38BC

#7A38BC is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.7% C 0.197 H 302.6°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#7A38BC
RGBrgb(122, 56, 188)
HSLhsl(270, 54%, 48%)
HSVhsv(270, 70%, 74%)
CMYKcmyk(35.1%, 70.2%, 0%, 26.3%)
CIE-LABlab(38.89, 53.24, -58.24)
CIE-LCHlch(38.89, 78.91, 312.43°)
OKLaboklab(49.68% 0.1061 -0.1658)
OKLCHoklch(49.68% 0.197 302.6)
XYZxyz(18.5152, 10.5967, 48.6371)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A38BC #7ABC38
analogous
#3838BC #7A38BC #BC38BC
triadic
#7A38BC #BC7A38 #38BC7A
tetradic
#7A38BC #BC3838 #7ABC38 #38BCBC
square
#7A38BC #BC3838 #7ABC38 #38BCBC
split-complementary
#7A38BC #BCBC38 #38BC38
monochromatic
#3D1C5E #5B2A8D #7A38BC #9961D0 #B790DE

Accessibility & contrast

On white

6.73
#7A38BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7A38BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A38BC
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A38BC#FFFFFF#000000##FFFFFF
##7A38BC1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC0
Deuteranopia (green-blind)
#005BB9
Tritanopia (blue-blind)
#6C5776
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7a38bc;
/* rgb */ color: rgb(122, 56, 188);
/* oklch */ color: oklch(49.7% 0.197 302.6);
Tailwind
colors: {
  custom: {
    50: '#a674d1',
    500: '#7a38bc',
    950: '#000000',
  },
}
SCSS
$custom: #7a38bc;
$custom-light: #a674d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a38bc",
  "rgb": {
    "r": 122,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 270,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.4968,
    "c": 0.19683,
    "h": 302.6
  },
  "luminance": 0.10597
}

Semantic roles & 50–950 ramp

primary
#7A38BC
secondary
#A8C987
accent
#DD4A94
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A38BC

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

Preview Lab → · Contrast checker → · Palette generator →

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