#7A38BE#7A38BE

#7A38BE is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.8% C 0.199 H 302.1°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#7A38BE
RGBrgb(122, 56, 190)
HSLhsl(270, 54%, 48%)
HSVhsv(270, 71%, 75%)
CMYKcmyk(35.8%, 70.5%, 0%, 25.5%)
CIE-LABlab(39.04, 53.72, -59.17)
CIE-LCHlch(39.04, 79.92, 312.24°)
OKLaboklab(49.83% 0.1057 -0.1685)
OKLCHoklch(49.83% 0.199 302.1)
XYZxyz(18.7323, 10.6836, 49.7805)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A38BE #7CBE38
analogous
#3839BE #7A38BE #BD38BE
triadic
#7A38BE #BE7A38 #38BE7A
tetradic
#7A38BE #BE3839 #7CBE38 #38BEBD
square
#7A38BE #BE3839 #7CBE38 #38BEBD
split-complementary
#7A38BE #BEBD38 #39BE38
monochromatic
#3D1C5F #5C2A8F #7A38BE #9962D1 #B892DF

Accessibility & contrast

On white

6.69
#7A38BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#7A38BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A38BE
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A38BE#FFFFFF#000000##FFFFFF
##7A38BE1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC2
Deuteranopia (green-blind)
#005BBB
Tritanopia (blue-blind)
#6C5877
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7a38be;
/* rgb */ color: rgb(122, 56, 190);
/* oklch */ color: oklch(49.8% 0.199 302.1);
Tailwind
colors: {
  custom: {
    50: '#a674d2',
    500: '#7a38be',
    950: '#000000',
  },
}
SCSS
$custom: #7a38be;
$custom-light: #a674d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a38be",
  "rgb": {
    "r": 122,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 269.552,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.49834,
    "c": 0.19896,
    "h": 302.1
  },
  "luminance": 0.10684
}

Semantic roles & 50–950 ramp

primary
#7A38BE
secondary
#A9CA88
accent
#DE4A95
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7A38BE

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

Preview Lab → · Contrast checker → · Palette generator →

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