#7A38C2#7A38C2

#7A38C2 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.1% C 0.203 H 301.1°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#7A38C2
RGBrgb(122, 56, 194)
HSLhsl(269, 55%, 49%)
HSVhsv(269, 71%, 76%)
CMYKcmyk(37.1%, 71.1%, 0%, 23.9%)
CIE-LABlab(39.34, 54.69, -61.02)
CIE-LCHlch(39.34, 81.95, 311.87°)
OKLaboklab(50.14% 0.105 -0.174)
OKLCHoklch(50.14% 0.203 301.1)
XYZxyz(19.1754, 10.8608, 52.1146)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A38C2 #80C238
analogous
#383BC2 #7A38C2 #BF38C2
triadic
#7A38C2 #C27A38 #38C27A
tetradic
#7A38C2 #C2383B #80C238 #38C2BF
square
#7A38C2 #C2383B #80C238 #38C2BF
split-complementary
#7A38C2 #C2BF38 #3BC238
monochromatic
#3E1D63 #5C2A93 #7A38C2 #9965D2 #B994E0

Accessibility & contrast

On white

6.62
#7A38C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#7A38C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A38C2
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A38C2#FFFFFF#000000##FFFFFF
##7A38C21.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC6
Deuteranopia (green-blind)
#005CBF
Tritanopia (blue-blind)
#6A5A79
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7a38c2;
/* rgb */ color: rgb(122, 56, 194);
/* oklch */ color: oklch(50.1% 0.203 301.1);
Tailwind
colors: {
  custom: {
    50: '#a674d5',
    500: '#7a38c2',
    950: '#000000',
  },
}
SCSS
$custom: #7a38c2;
$custom-light: #a674d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a38c2",
  "rgb": {
    "r": 122,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 268.696,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.50144,
    "c": 0.20323,
    "h": 301.1
  },
  "luminance": 0.10861
}

Semantic roles & 50–950 ramp

primary
#7A38C2
secondary
#ACCB8A
accent
#DF4997
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7A38C2

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

Preview Lab → · Contrast checker → · Palette generator →

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