#7F38AA#7F38AA

#7F38AA is a mid, vivid violet. Relative luminance 0.102; OKLCH L 49.0% C 0.179 H 310.0°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#7F38AA
RGBrgb(127, 56, 170)
HSLhsl(277, 50%, 44%)
HSVhsv(277, 67%, 67%)
CMYKcmyk(25.3%, 67.1%, 0%, 33.3%)
CIE-LABlab(38.28, 50.07, -48.56)
CIE-LCHlch(38.28, 69.75, 315.88°)
OKLaboklab(48.98% 0.1151 -0.1372)
OKLCHoklch(48.98% 0.179 310)
XYZxyz(17.4209, 10.2430, 39.0818)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F38AA #63AA38
analogous
#4638AA #7F38AA #AA389C
triadic
#7F38AA #AA7F38 #38AA7F
tetradic
#7F38AA #AA4638 #63AA38 #389CAA
square
#7F38AA #AA4638 #63AA38 #389CAA
split-complementary
#7F38AA #9CAA38 #38AA46
monochromatic
#3A1A4E #5D297C #7F38AA #9D57C8 #B885D7

Accessibility & contrast

On white

6.89
#7F38AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7F38AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F38AA
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F38AA#FFFFFF#000000##FFFFFF
##7F38AA1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AD
Deuteranopia (green-blind)
#275BA7
Tritanopia (blue-blind)
#79506C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7f38aa;
/* rgb */ color: rgb(127, 56, 170);
/* oklch */ color: oklch(49.0% 0.179 310.0);
Tailwind
colors: {
  custom: {
    50: '#a874c4',
    500: '#7f38aa',
    950: '#000000',
  },
}
SCSS
$custom: #7f38aa;
$custom-light: #a874c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f38aa",
  "rgb": {
    "r": 127,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 277.368,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48977,
    "c": 0.17905,
    "h": 310
  },
  "luminance": 0.10243
}

Semantic roles & 50–950 ramp

primary
#7F38AA
secondary
#97C17D
accent
#DA4E83
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F38AA

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

Preview Lab → · Contrast checker → · Palette generator →

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