#7F38CC#7F38CC

#7F38CC is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.5% C 0.215 H 300.9°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#7F38CC
RGBrgb(127, 56, 204)
HSLhsl(269, 59%, 51%)
HSVhsv(269, 73%, 80%)
CMYKcmyk(37.7%, 72.5%, 0%, 20%)
CIE-LABlab(40.74, 58.03, -64.55)
CIE-LCHlch(40.74, 86.80, 311.95°)
OKLaboklab(51.51% 0.1101 -0.1842)
OKLCHoklch(51.51% 0.215 300.9)
XYZxyz(21.0630, 11.6999, 58.2636)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F38CC #85CC38
analogous
#383BCC #7F38CC #C938CC
triadic
#7F38CC #CC7F38 #38CC7F
tetradic
#7F38CC #CC383B #85CC38 #38CCC9
square
#7F38CC #CC383B #85CC38 #38CCC9
split-complementary
#7F38CC #CCC938 #3BCC38
monochromatic
#431C6E #61299E #7F38CC #9E69D8 #BE99E5

Accessibility & contrast

On white

6.29
#7F38CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7F38CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F38CC
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F38CC#FFFFFF#000000##FFFFFF
##7F38CC1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD0
Deuteranopia (green-blind)
#005FC9
Tritanopia (blue-blind)
#6E5D7F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7f38cc;
/* rgb */ color: rgb(127, 56, 204);
/* oklch */ color: oklch(51.5% 0.215 300.9);
Tailwind
colors: {
  custom: {
    50: '#aa75dd',
    500: '#7f38cc',
    950: '#000000',
  },
}
SCSS
$custom: #7f38cc;
$custom-light: #aa75dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f38cc",
  "rgb": {
    "r": 127,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 268.784,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51505,
    "c": 0.21459,
    "h": 300.9
  },
  "luminance": 0.117
}

Semantic roles & 50–950 ramp

primary
#7F38CC
secondary
#B1D18F
accent
#E24597
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F38CC

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

Preview Lab → · Contrast checker → · Palette generator →

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