#7F38C0#7F38C0

#7F38C0 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.6% C 0.202 H 303.8°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#7F38C0
RGBrgb(127, 56, 192)
HSLhsl(271, 55%, 49%)
HSVhsv(271, 71%, 75%)
CMYKcmyk(33.9%, 70.8%, 0%, 24.7%)
CIE-LABlab(39.83, 55.17, -59.04)
CIE-LCHlch(39.83, 80.81, 313.06°)
OKLaboklab(50.58% 0.1123 -0.168)
OKLCHoklch(50.58% 0.202 303.8)
XYZxyz(19.6788, 11.1462, 50.9737)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F38C0 #79C038
analogous
#3B38C0 #7F38C0 #C038BD
triadic
#7F38C0 #C07F38 #38C07F
tetradic
#7F38C0 #C03B38 #79C038 #38BDC0
square
#7F38C0 #C03B38 #79C038 #38BDC0
split-complementary
#7F38C0 #BDC038 #38C03B
monochromatic
#401C61 #602A91 #7F38C0 #9D64D2 #BB93DF

Accessibility & contrast

On white

6.50
#7F38C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#7F38C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F38C0
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F38C0#FFFFFF#000000##FFFFFF
##7F38C01.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC4
Deuteranopia (green-blind)
#005EBD
Tritanopia (blue-blind)
#725878
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7f38c0;
/* rgb */ color: rgb(127, 56, 192);
/* oklch */ color: oklch(50.6% 0.202 303.8);
Tailwind
colors: {
  custom: {
    50: '#a975d4',
    500: '#7f38c0',
    950: '#000000',
  },
}
SCSS
$custom: #7f38c0;
$custom-light: #a975d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f38c0",
  "rgb": {
    "r": 127,
    "g": 56,
    "b": 192
  },
  "hsl": {
    "h": 271.324,
    "s": 54.839,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50576,
    "c": 0.20208,
    "h": 303.8
  },
  "luminance": 0.11146
}

Semantic roles & 50–950 ramp

primary
#7F38C0
secondary
#A8CB89
accent
#DE4A91
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7F38C0

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

Preview Lab → · Contrast checker → · Palette generator →

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