#7F38C8#7F38C8

#7F38C8 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.2% C 0.210 H 301.8°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#7F38C8
RGBrgb(127, 56, 200)
HSLhsl(270, 57%, 50%)
HSVhsv(270, 72%, 78%)
CMYKcmyk(36.5%, 72%, 0%, 21.6%)
CIE-LABlab(40.43, 57.07, -62.73)
CIE-LCHlch(40.43, 84.81, 312.29°)
OKLaboklab(51.19% 0.1109 -0.1788)
OKLCHoklch(51.19% 0.21 301.8)
XYZxyz(20.5894, 11.5104, 55.7694)
Luminance0.1151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F38C8 #81C838
analogous
#3839C8 #7F38C8 #C738C8
triadic
#7F38C8 #C87F38 #38C87F
tetradic
#7F38C8 #C83839 #81C838 #38C8C7
square
#7F38C8 #C83839 #81C838 #38C8C7
split-complementary
#7F38C8 #C8C738 #39C838
monochromatic
#421D69 #612A99 #7F38C8 #9E68D5 #BD98E3

Accessibility & contrast

On white

6.36
#7F38C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#7F38C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F38C8
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F38C8#FFFFFF#000000##FFFFFF
##7F38C81.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECC
Deuteranopia (green-blind)
#005FC5
Tritanopia (blue-blind)
#6F5B7D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f38c8;
/* rgb */ color: rgb(127, 56, 200);
/* oklch */ color: oklch(51.2% 0.210 301.8);
Tailwind
colors: {
  custom: {
    50: '#aa75da',
    500: '#7f38c8',
    950: '#000000',
  },
}
SCSS
$custom: #7f38c8;
$custom-light: #aa75da;
$custom-dark: #000000;
JSON
{
  "hex": "#7f38c8",
  "rgb": {
    "r": 127,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 269.583,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51191,
    "c": 0.21043,
    "h": 301.8
  },
  "luminance": 0.11511
}

Semantic roles & 50–950 ramp

primary
#7F38C8
secondary
#AECE8E
accent
#E04895
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F38C8

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

Preview Lab → · Contrast checker → · Palette generator →

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