#7A38BF#7A38BF

#7A38BF is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.9% C 0.200 H 301.9°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#7A38BF
RGBrgb(122, 56, 191)
HSLhsl(269, 55%, 48%)
HSVhsv(269, 71%, 75%)
CMYKcmyk(36.1%, 70.7%, 0%, 25.1%)
CIE-LABlab(39.12, 53.97, -59.64)
CIE-LCHlch(39.12, 80.43, 312.14°)
OKLaboklab(49.91% 0.1056 -0.1699)
OKLCHoklch(49.91% 0.2 301.9)
XYZxyz(18.8419, 10.7274, 50.3581)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A38BF #7DBF38
analogous
#383ABF #7A38BF #BD38BF
triadic
#7A38BF #BF7A38 #38BF7A
tetradic
#7A38BF #BF383A #7DBF38 #38BFBD
square
#7A38BF #BF383A #7DBF38 #38BFBD
split-complementary
#7A38BF #BFBD38 #3ABF38
monochromatic
#3E1C60 #5C2A90 #7A38BF #9963D1 #B892DF

Accessibility & contrast

On white

6.68
#7A38BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#7A38BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A38BF
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A38BF#FFFFFF#000000##FFFFFF
##7A38BF1.006.683.156.68
#FFFFFF6.681.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC3
Deuteranopia (green-blind)
#005BBC
Tritanopia (blue-blind)
#6B5878
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7a38bf;
/* rgb */ color: rgb(122, 56, 191);
/* oklch */ color: oklch(49.9% 0.200 301.9);
Tailwind
colors: {
  custom: {
    50: '#a674d3',
    500: '#7a38bf',
    950: '#000000',
  },
}
SCSS
$custom: #7a38bf;
$custom-light: #a674d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a38bf",
  "rgb": {
    "r": 122,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 269.333,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.49911,
    "c": 0.20004,
    "h": 301.9
  },
  "luminance": 0.10728
}

Semantic roles & 50–950 ramp

primary
#7A38BF
secondary
#AACA89
accent
#DE4A96
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7A38BF

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

Preview Lab → · Contrast checker → · Palette generator →

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