#7A38B5#7A38B5

#7A38B5 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 49.2% C 0.189 H 304.4°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#7A38B5
RGBrgb(122, 56, 181)
HSLhsl(272, 53%, 46%)
HSVhsv(272, 69%, 71%)
CMYKcmyk(32.6%, 69.1%, 0%, 29%)
CIE-LABlab(38.38, 51.56, -54.95)
CIE-LCHlch(38.38, 75.35, 313.17°)
OKLaboklab(49.15% 0.1071 -0.1561)
OKLCHoklch(49.15% 0.189 304.4)
XYZxyz(17.7788, 10.3022, 44.7590)
Luminance0.1030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A38B5 #73B538
analogous
#3C38B5 #7A38B5 #B538B2
triadic
#7A38B5 #B57A38 #38B57A
tetradic
#7A38B5 #B53C38 #73B538 #38B2B5
square
#7A38B5 #B53C38 #73B538 #38B2B5
split-complementary
#7A38B5 #B2B538 #38B53C
monochromatic
#3B1B58 #5A2A86 #7A38B5 #985DCD #B68CDB

Accessibility & contrast

On white

6.86
#7A38B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7A38B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A38B5
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A38B5#FFFFFF#000000##FFFFFF
##7A38B51.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B9
Deuteranopia (green-blind)
#015AB2
Tritanopia (blue-blind)
#6F5572
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7a38b5;
/* rgb */ color: rgb(122, 56, 181);
/* oklch */ color: oklch(49.2% 0.189 304.4);
Tailwind
colors: {
  custom: {
    50: '#a574cc',
    500: '#7a38b5',
    950: '#000000',
  },
}
SCSS
$custom: #7a38b5;
$custom-light: #a574cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a38b5",
  "rgb": {
    "r": 122,
    "g": 56,
    "b": 181
  },
  "hsl": {
    "h": 271.68,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.49152,
    "c": 0.18933,
    "h": 304.4
  },
  "luminance": 0.10302
}

Semantic roles & 50–950 ramp

primary
#7A38B5
secondary
#A3C683
accent
#DC4C90
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A38B5

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

Preview Lab → · Contrast checker → · Palette generator →

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