#7F38D7#7F38D7

#7F38D7 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.4% C 0.226 H 298.5°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#7F38D7
RGBrgb(127, 56, 215)
HSLhsl(267, 67%, 53%)
HSVhsv(267, 74%, 84%)
CMYKcmyk(40.9%, 74%, 0%, 15.7%)
CIE-LABlab(41.60, 60.68, -69.48)
CIE-LCHlch(41.60, 92.25, 311.13°)
OKLaboklab(52.39% 0.1078 -0.1986)
OKLCHoklch(52.39% 0.226 298.5)
XYZxyz(22.4292, 12.2463, 65.4589)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F38D7 #90D738
analogous
#3841D7 #7F38D7 #CE38D7
triadic
#7F38D7 #D77F38 #38D77F
tetradic
#7F38D7 #D73841 #90D738 #38D7CE
square
#7F38D7 #D73841 #90D738 #38D7CE
split-complementary
#7F38D7 #D7CE38 #41D738
monochromatic
#45197C #6123AF #7F38D7 #A06BE1 #C19EEB

Accessibility & contrast

On white

6.09
#7F38D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7F38D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F38D7
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F38D7#FFFFFF#000000##FFFFFF
##7F38D71.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DC
Deuteranopia (green-blind)
#0061D4
Tritanopia (blue-blind)
#696185
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7f38d7;
/* rgb */ color: rgb(127, 56, 215);
/* oklch */ color: oklch(52.4% 0.226 298.5);
Tailwind
colors: {
  custom: {
    50: '#ab75e4',
    500: '#7f38d7',
    950: '#000000',
  },
}
SCSS
$custom: #7f38d7;
$custom-light: #ab75e4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f38d7",
  "rgb": {
    "r": 127,
    "g": 56,
    "b": 215
  },
  "hsl": {
    "h": 266.792,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52389,
    "c": 0.22599,
    "h": 298.5
  },
  "luminance": 0.12247
}

Semantic roles & 50–950 ramp

primary
#7F38D7
secondary
#B9D893
accent
#E93E9D
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#110916
muted
#807B84

Preview Lab

Preview with #7F38D7

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

Preview Lab → · Contrast checker → · Palette generator →

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