#7F38BF#7F38BF

#7F38BF is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.5% C 0.201 H 304.0°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#7F38BF
RGBrgb(127, 56, 191)
HSLhsl(272, 55%, 48%)
HSVhsv(272, 71%, 75%)
CMYKcmyk(33.5%, 70.7%, 0%, 25.1%)
CIE-LABlab(39.75, 54.93, -58.58)
CIE-LCHlch(39.75, 80.31, 313.16°)
OKLaboklab(50.5% 0.1125 -0.1666)
OKLCHoklch(50.5% 0.201 304)
XYZxyz(19.5684, 11.1020, 50.3921)
Luminance0.1110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F38BF #78BF38
analogous
#3C38BF #7F38BF #BF38BB
triadic
#7F38BF #BF7F38 #38BF7F
tetradic
#7F38BF #BF3C38 #78BF38 #38BBBF
square
#7F38BF #BF3C38 #78BF38 #38BBBF
split-complementary
#7F38BF #BBBF38 #38BF3C
monochromatic
#401C60 #602A90 #7F38BF #9D63D1 #BB92DF

Accessibility & contrast

On white

6.52
#7F38BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#7F38BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F38BF
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F38BF#FFFFFF#000000##FFFFFF
##7F38BF1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC3
Deuteranopia (green-blind)
#005EBC
Tritanopia (blue-blind)
#735878
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7f38bf;
/* rgb */ color: rgb(127, 56, 191);
/* oklch */ color: oklch(50.5% 0.201 304.0);
Tailwind
colors: {
  custom: {
    50: '#a974d3',
    500: '#7f38bf',
    950: '#000000',
  },
}
SCSS
$custom: #7f38bf;
$custom-light: #a974d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f38bf",
  "rgb": {
    "r": 127,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 271.556,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.505,
    "c": 0.20104,
    "h": 304
  },
  "luminance": 0.11102
}

Semantic roles & 50–950 ramp

primary
#7F38BF
secondary
#A8CA89
accent
#DE4A90
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7F38BF

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

Preview Lab → · Contrast checker → · Palette generator →

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