#7A38C3#7A38C3

#7A38C3 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.2% C 0.204 H 300.9°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#7A38C3
RGBrgb(122, 56, 195)
HSLhsl(268, 55%, 49%)
HSVhsv(268, 71%, 76%)
CMYKcmyk(37.4%, 71.3%, 0%, 23.5%)
CIE-LABlab(39.42, 54.94, -61.48)
CIE-LCHlch(39.42, 82.45, 311.78°)
OKLaboklab(50.22% 0.1049 -0.1753)
OKLCHoklch(50.22% 0.204 300.9)
XYZxyz(19.2881, 10.9059, 52.7081)
Luminance0.1091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A38C3 #81C338
analogous
#383CC3 #7A38C3 #C038C3
triadic
#7A38C3 #C37A38 #38C37A
tetradic
#7A38C3 #C3383C #81C338 #38C3C0
square
#7A38C3 #C3383C #81C338 #38C3C0
split-complementary
#7A38C3 #C3C038 #3CC338
monochromatic
#3F1D64 #5C2A93 #7A38C3 #9965D3 #B995E1

Accessibility & contrast

On white

6.60
#7A38C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#7A38C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A38C3
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A38C3#FFFFFF#000000##FFFFFF
##7A38C31.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC7
Deuteranopia (green-blind)
#005CC0
Tritanopia (blue-blind)
#6A5A7A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7a38c3;
/* rgb */ color: rgb(122, 56, 195);
/* oklch */ color: oklch(50.2% 0.204 300.9);
Tailwind
colors: {
  custom: {
    50: '#a674d6',
    500: '#7a38c3',
    950: '#000000',
  },
}
SCSS
$custom: #7a38c3;
$custom-light: #a674d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a38c3",
  "rgb": {
    "r": 122,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 268.489,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.50222,
    "c": 0.20429,
    "h": 300.9
  },
  "luminance": 0.10906
}

Semantic roles & 50–950 ramp

primary
#7A38C3
secondary
#ADCC8B
accent
#DF4998
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7A38C3

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

Preview Lab → · Contrast checker → · Palette generator →

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