#7A38AF#7A38AF

#7A38AF is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.7% C 0.183 H 306.1°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#7A38AF
RGBrgb(122, 56, 175)
HSLhsl(273, 52%, 45%)
HSVhsv(273, 68%, 69%)
CMYKcmyk(30.3%, 68%, 0%, 31.4%)
CIE-LABlab(37.95, 50.13, -52.09)
CIE-LCHlch(37.95, 72.29, 313.90°)
OKLaboklab(48.71% 0.1078 -0.1477)
OKLCHoklch(48.71% 0.183 306.1)
XYZxyz(17.1764, 10.0612, 41.5863)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A38AF #6DAF38
analogous
#3E38AF #7A38AF #AF38A9
triadic
#7A38AF #AF7A38 #38AF7A
tetradic
#7A38AF #AF3E38 #6DAF38 #38A9AF
square
#7A38AF #AF3E38 #6DAF38 #38A9AF
split-complementary
#7A38AF #A9AF38 #38AF3E
monochromatic
#391A52 #5A2981 #7A38AF #985ACA #B588D9

Accessibility & contrast

On white

6.97
#7A38AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7A38AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A38AF
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A38AF#FFFFFF#000000##FFFFFF
##7A38AF1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B3
Deuteranopia (green-blind)
#165AAC
Tritanopia (blue-blind)
#71526F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7a38af;
/* rgb */ color: rgb(122, 56, 175);
/* oklch */ color: oklch(48.7% 0.183 306.1);
Tailwind
colors: {
  custom: {
    50: '#a573c8',
    500: '#7a38af',
    950: '#000000',
  },
}
SCSS
$custom: #7a38af;
$custom-light: #a573c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a38af",
  "rgb": {
    "r": 122,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 273.277,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48711,
    "c": 0.18289,
    "h": 306.1
  },
  "luminance": 0.10061
}

Semantic roles & 50–950 ramp

primary
#7A38AF
secondary
#9EC380
accent
#DB4D8C
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A38AF

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

Preview Lab → · Contrast checker → · Palette generator →

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