#7F38AF#7F38AF

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

Color values

HEX#7F38AF
RGBrgb(127, 56, 175)
HSLhsl(276, 52%, 45%)
HSVhsv(276, 68%, 69%)
CMYKcmyk(27.4%, 68%, 0%, 31.4%)
CIE-LABlab(38.61, 51.21, -50.99)
CIE-LCHlch(38.61, 72.27, 315.13°)
OKLaboklab(49.33% 0.1146 -0.1443)
OKLCHoklch(49.33% 0.184 308.5)
XYZxyz(17.9029, 10.4358, 41.6203)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F38AF #68AF38
analogous
#4338AF #7F38AF #AF38A4
triadic
#7F38AF #AF7F38 #38AF7F
tetradic
#7F38AF #AF4338 #68AF38 #38A4AF
square
#7F38AF #AF4338 #68AF38 #38A4AF
split-complementary
#7F38AF #A4AF38 #38AF43
monochromatic
#3C1A52 #5D2981 #7F38AF #9D5ACA #B888D9

Accessibility & contrast

On white

6.80
#7F38AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7F38AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F38AF
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F38AF#FFFFFF#000000##FFFFFF
##7F38AF1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B3
Deuteranopia (green-blind)
#205CAC
Tritanopia (blue-blind)
#78526F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f38af;
/* rgb */ color: rgb(127, 56, 175);
/* oklch */ color: oklch(49.3% 0.184 308.5);
Tailwind
colors: {
  custom: {
    50: '#a874c8',
    500: '#7f38af',
    950: '#000000',
  },
}
SCSS
$custom: #7f38af;
$custom-light: #a874c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f38af",
  "rgb": {
    "r": 127,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 275.798,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49327,
    "c": 0.18428,
    "h": 308.5
  },
  "luminance": 0.10436
}

Semantic roles & 50–950 ramp

primary
#7F38AF
secondary
#9BC380
accent
#DB4D86
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F38AF

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

Preview Lab → · Contrast checker → · Palette generator →

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