#7A38C7#7A38C7

#7A38C7 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.5% C 0.209 H 299.9°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#7A38C7
RGBrgb(122, 56, 199)
HSLhsl(268, 56%, 50%)
HSVhsv(268, 72%, 78%)
CMYKcmyk(38.7%, 71.9%, 0%, 22%)
CIE-LABlab(39.73, 55.92, -63.31)
CIE-LCHlch(39.73, 84.47, 311.45°)
OKLaboklab(50.54% 0.1041 -0.1807)
OKLCHoklch(50.54% 0.209 299.9)
XYZxyz(19.7464, 11.0892, 55.1219)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A38C7 #85C738
analogous
#383EC7 #7A38C7 #C138C7
triadic
#7A38C7 #C77A38 #38C77A
tetradic
#7A38C7 #C7383E #85C738 #38C7C1
square
#7A38C7 #C7383E #85C738 #38C7C1
split-complementary
#7A38C7 #C7C138 #3EC738
monochromatic
#3F1D67 #5D2B97 #7A38C7 #9A68D4 #BA98E2

Accessibility & contrast

On white

6.53
#7A38C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#7A38C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A38C7
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A38C7#FFFFFF#000000##FFFFFF
##7A38C71.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCB
Deuteranopia (green-blind)
#005CC4
Tritanopia (blue-blind)
#685C7C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7a38c7;
/* rgb */ color: rgb(122, 56, 199);
/* oklch */ color: oklch(50.5% 0.209 299.9);
Tailwind
colors: {
  custom: {
    50: '#a774d9',
    500: '#7a38c7',
    950: '#000000',
  },
}
SCSS
$custom: #7a38c7;
$custom-light: #a774d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a38c7",
  "rgb": {
    "r": 122,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 267.692,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.50538,
    "c": 0.20855,
    "h": 299.9
  },
  "luminance": 0.11089
}

Semantic roles & 50–950 ramp

primary
#7A38C7
secondary
#B0CD8D
accent
#DF489A
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7A38C7

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

Preview Lab → · Contrast checker → · Palette generator →

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