#7F38BC#7F38BC

#7F38BC is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.3% C 0.198 H 304.8°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#7F38BC
RGBrgb(127, 56, 188)
HSLhsl(272, 54%, 48%)
HSVhsv(272, 70%, 74%)
CMYKcmyk(32.4%, 70.2%, 0%, 26.3%)
CIE-LABlab(39.53, 54.23, -57.18)
CIE-LCHlch(39.53, 78.80, 313.48°)
OKLaboklab(50.27% 0.113 -0.1625)
OKLCHoklch(50.27% 0.198 304.8)
XYZxyz(19.2416, 10.9713, 48.6712)
Luminance0.1097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F38BC #75BC38
analogous
#3D38BC #7F38BC #BC38B7
triadic
#7F38BC #BC7F38 #38BC7F
tetradic
#7F38BC #BC3D38 #75BC38 #38B7BC
square
#7F38BC #BC3D38 #75BC38 #38B7BC
split-complementary
#7F38BC #B7BC38 #38BC3D
monochromatic
#3F1C5E #5F2A8D #7F38BC #9D61D0 #BA90DE

Accessibility & contrast

On white

6.57
#7F38BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#7F38BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F38BC
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F38BC#FFFFFF#000000##FFFFFF
##7F38BC1.006.573.196.57
#FFFFFF6.571.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC0
Deuteranopia (green-blind)
#005DB9
Tritanopia (blue-blind)
#745776
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7f38bc;
/* rgb */ color: rgb(127, 56, 188);
/* oklch */ color: oklch(50.3% 0.198 304.8);
Tailwind
colors: {
  custom: {
    50: '#a974d1',
    500: '#7f38bc',
    950: '#000000',
  },
}
SCSS
$custom: #7f38bc;
$custom-light: #a974d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f38bc",
  "rgb": {
    "r": 127,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 272.273,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50274,
    "c": 0.1979,
    "h": 304.8
  },
  "luminance": 0.10971
}

Semantic roles & 50–950 ramp

primary
#7F38BC
secondary
#A5C987
accent
#DD4A8E
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7F38BC

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

Preview Lab → · Contrast checker → · Palette generator →

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