#7F38BB#7F38BB

#7F38BB is a mid, vivid violet. Relative luminance 0.109; OKLCH L 50.2% C 0.197 H 305.1°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#7F38BB
RGBrgb(127, 56, 187)
HSLhsl(273, 54%, 48%)
HSVhsv(273, 70%, 73%)
CMYKcmyk(32.1%, 70.1%, 0%, 26.7%)
CIE-LABlab(39.46, 53.99, -56.71)
CIE-LCHlch(39.46, 78.30, 313.59°)
OKLaboklab(50.2% 0.1131 -0.1611)
OKLCHoklch(50.2% 0.197 305.1)
XYZxyz(19.1342, 10.9283, 48.1054)
Luminance0.1093 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F38BB #74BB38
analogous
#3E38BB #7F38BB #BB38B5
triadic
#7F38BB #BB7F38 #38BB7F
tetradic
#7F38BB #BB3E38 #74BB38 #38B5BB
square
#7F38BB #BB3E38 #74BB38 #38B5BB
split-complementary
#7F38BB #B5BB38 #38BB3E
monochromatic
#3F1C5D #5F2A8C #7F38BB #9D61D0 #BA90DE

Accessibility & contrast

On white

6.59
#7F38BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F38BB
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F38BB#FFFFFF#000000##FFFFFF
##7F38BB1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBF
Deuteranopia (green-blind)
#005DB8
Tritanopia (blue-blind)
#745675
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7f38bb;
/* rgb */ color: rgb(127, 56, 187);
/* oklch */ color: oklch(50.2% 0.197 305.1);
Tailwind
colors: {
  custom: {
    50: '#a974d0',
    500: '#7f38bb',
    950: '#000000',
  },
}
SCSS
$custom: #7f38bb;
$custom-light: #a974d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f38bb",
  "rgb": {
    "r": 127,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 272.519,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.502,
    "c": 0.19685,
    "h": 305.1
  },
  "luminance": 0.10928
}

Semantic roles & 50–950 ramp

primary
#7F38BB
secondary
#A5C886
accent
#DD4B8E
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7F38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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