#7F38AE#7F38AE

#7F38AE is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.3% C 0.183 H 308.8°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#7F38AE
RGBrgb(127, 56, 174)
HSLhsl(276, 51%, 45%)
HSVhsv(276, 68%, 68%)
CMYKcmyk(27%, 67.8%, 0%, 31.8%)
CIE-LABlab(38.55, 50.98, -50.50)
CIE-LCHlch(38.55, 71.76, 315.27°)
OKLaboklab(49.26% 0.1147 -0.1429)
OKLCHoklch(49.26% 0.183 308.8)
XYZxyz(17.8050, 10.3967, 41.1050)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F38AE #67AE38
analogous
#4438AE #7F38AE #AE38A2
triadic
#7F38AE #AE7F38 #38AE7F
tetradic
#7F38AE #AE4438 #67AE38 #38A2AE
square
#7F38AE #AE4438 #67AE38 #38A2AE
split-complementary
#7F38AE #A2AE38 #38AE44
monochromatic
#3B1A51 #5D2980 #7F38AE #9D59CA #B888D9

Accessibility & contrast

On white

6.82
#7F38AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#7F38AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F38AE
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F38AE#FFFFFF#000000##FFFFFF
##7F38AE1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B2
Deuteranopia (green-blind)
#215CAB
Tritanopia (blue-blind)
#78516E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f38ae;
/* rgb */ color: rgb(127, 56, 174);
/* oklch */ color: oklch(49.3% 0.183 308.8);
Tailwind
colors: {
  custom: {
    50: '#a874c7',
    500: '#7f38ae',
    950: '#000000',
  },
}
SCSS
$custom: #7f38ae;
$custom-light: #a874c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f38ae",
  "rgb": {
    "r": 127,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 276.102,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49257,
    "c": 0.18323,
    "h": 308.8
  },
  "luminance": 0.10396
}

Semantic roles & 50–950 ramp

primary
#7F38AE
secondary
#9AC37F
accent
#DB4D85
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F38AE

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

Preview Lab → · Contrast checker → · Palette generator →

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