#7A38C5#7A38C5

#7A38C5 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.4% C 0.206 H 300.4°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#7A38C5
RGBrgb(122, 56, 197)
HSLhsl(268, 56%, 50%)
HSVhsv(268, 72%, 77%)
CMYKcmyk(38.1%, 71.6%, 0%, 22.7%)
CIE-LABlab(39.58, 55.43, -62.40)
CIE-LCHlch(39.58, 83.46, 311.61°)
OKLaboklab(50.38% 0.1045 -0.178)
OKLCHoklch(50.38% 0.206 300.4)
XYZxyz(19.5158, 10.9970, 53.9069)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A38C5 #83C538
analogous
#383DC5 #7A38C5 #C138C5
triadic
#7A38C5 #C57A38 #38C57A
tetradic
#7A38C5 #C5383D #83C538 #38C5C1
square
#7A38C5 #C5383D #83C538 #38C5C1
split-complementary
#7A38C5 #C5C138 #3DC538
monochromatic
#3F1D66 #5C2A95 #7A38C5 #9A67D4 #B996E1

Accessibility & contrast

On white

6.56
#7A38C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#7A38C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A38C5
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A38C5#FFFFFF#000000##FFFFFF
##7A38C51.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC9
Deuteranopia (green-blind)
#005CC2
Tritanopia (blue-blind)
#695B7B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7a38c5;
/* rgb */ color: rgb(122, 56, 197);
/* oklch */ color: oklch(50.4% 0.206 300.4);
Tailwind
colors: {
  custom: {
    50: '#a774d8',
    500: '#7a38c5',
    950: '#000000',
  },
}
SCSS
$custom: #7a38c5;
$custom-light: #a774d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a38c5",
  "rgb": {
    "r": 122,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 268.085,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50379,
    "c": 0.20643,
    "h": 300.4
  },
  "luminance": 0.10997
}

Semantic roles & 50–950 ramp

primary
#7A38C5
secondary
#AECD8C
accent
#DF4999
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7A38C5

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

Preview Lab → · Contrast checker → · Palette generator →

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